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:
commit
4d8e704c30
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user