1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Fix portable mode settings loading

Fixes partially #1883, avatars still don't carry over.
This commit is contained in:
tux3 2015-09-05 19:20:09 +02:00
parent e15c32ad2b
commit 54c837a03e
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -93,7 +93,6 @@ void Settings::loadGlobal()
return;
createSettingsDir();
QDir dir(getSettingsDirPath());
if (QFile(globalSettingsFile).exists())
{
@ -107,6 +106,7 @@ void Settings::loadGlobal()
makeToxPortable = false;
}
QDir dir(getSettingsDirPath());
QString filePath = dir.filePath(globalSettingsFile);
// If no settings file exist -- use the default one