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

Merge pull request #3691

Diadlo (1):
      fix(settings): Fixed group to load makeToxPortable setting
This commit is contained in:
Diadlo 2016-09-10 23:43:51 +03:00
commit 4d8e704c30
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -108,11 +108,14 @@ void Settings::loadGlobal()
createSettingsDir();
if (QFile(qApp->applicationDirPath()+QDir::separator()+globalSettingsFile).exists())
QString localSettingsPath = qApp->applicationDirPath() + QDir::separator()
+ globalSettingsFile;
if (QFile(localSettingsPath).exists())
{
QSettings ps(qApp->applicationDirPath()+QDir::separator()+globalSettingsFile, QSettings::IniFormat);
QSettings ps(localSettingsPath, QSettings::IniFormat);
ps.setIniCodec("UTF-8");
ps.beginGroup("General");
ps.beginGroup("Advanced");
makeToxPortable = ps.value("makeToxPortable", false).toBool();
ps.endGroup();
}