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

Fix Make Tox Portable impossible to disable

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-04 23:11:46 +02:00
parent 7576795cca
commit bf8e1101c5

View File

@ -48,13 +48,19 @@ Settings& Settings::getInstance()
void Settings::load()
{
if (loaded) {
if (loaded)
return;
}
QFile portableSettings(FILENAME);
if (portableSettings.exists())
makeToxPortable=true;
{
QSettings ps(FILENAME, QSettings::IniFormat);
ps.beginGroup("General");
makeToxPortable = ps.value("makeToxPortable", false).toBool();
ps.endGroup();
}
else
makeToxPortable = false;
QString filePath = QDir(getSettingsDirPath()).filePath(FILENAME);