mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
a1239747ac
commit
ed22dc9ca5
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user