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

write settings *after* changing them...

closes dubslow/qTox#3
This commit is contained in:
Dubslow 2015-01-26 19:22:38 -06:00
parent a1239747ac
commit ed22dc9ca5
No known key found for this signature in database
GPG Key ID: 3DB8E05315C220AA

View File

@ -236,8 +236,6 @@ void Core::saveConfiguration(const QString& path)
return; return;
} }
Settings::getInstance().save();
QSaveFile configurationFile(path); QSaveFile configurationFile(path);
if (!configurationFile.open(QIODevice::WriteOnly)) { if (!configurationFile.open(QIODevice::WriteOnly)) {
qCritical() << "File " << path << " cannot be opened"; qCritical() << "File " << path << " cannot be opened";
@ -281,4 +279,6 @@ void Core::saveConfiguration(const QString& path)
configurationFile.commit(); configurationFile.commit();
delete[] data; delete[] data;
} }
Settings::getInstance().save();
} }