Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(settings): Fixed group to load makeToxPortable setting
Browse files Browse the repository at this point in the history
Fixed #3681.
  • Loading branch information
Diadlo committed Sep 6, 2016
1 parent e92ce42 commit a3c201d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/persistence/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit a3c201d

Please sign in to comment.