|
|
@ -61,12 +61,14 @@ |
|
|
|
|
|
|
|
|
|
|
|
namespace |
|
|
|
namespace |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
#ifdef Q_OS_WIN |
|
|
|
QString makeProfileID(const QString &profilePath, const QString &profileName) |
|
|
|
QString makeProfileID(const QString &profilePath, const QString &profileName) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return profilePath.isEmpty() |
|
|
|
return profilePath.isEmpty() |
|
|
|
? profileName |
|
|
|
? profileName |
|
|
|
: profileName + QLatin1Char('@') + Utils::Fs::toValidFileSystemName(profilePath, false, {}); |
|
|
|
: profileName + QLatin1Char('@') + Utils::Fs::toValidFileSystemName(profilePath, false, {}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Preferences *Preferences::m_instance = nullptr; |
|
|
|
Preferences *Preferences::m_instance = nullptr; |
|
|
|