diff --git a/src/coreencryption.cpp b/src/coreencryption.cpp index 7eb238163..42ee93c90 100644 --- a/src/coreencryption.cpp +++ b/src/coreencryption.cpp @@ -236,8 +236,6 @@ void Core::saveConfiguration(const QString& path) return; } - Settings::getInstance().save(); - QSaveFile configurationFile(path); if (!configurationFile.open(QIODevice::WriteOnly)) { qCritical() << "File " << path << " cannot be opened"; @@ -281,4 +279,6 @@ void Core::saveConfiguration(const QString& path) configurationFile.commit(); delete[] data; } + + Settings::getInstance().save(); }