diff --git a/src/persistence/settings.cpp b/src/persistence/settings.cpp index cf742113e..e573448f7 100644 --- a/src/persistence/settings.cpp +++ b/src/persistence/settings.cpp @@ -283,6 +283,7 @@ void Settings::loadPersonnal(Profile* profile) qDebug()<<"Loading personnal settings from"<getPassword()); + ps.load(); friendLst.clear(); ps.beginGroup("Friends"); int size = ps.beginReadArray("Friend"); @@ -463,7 +464,7 @@ void Settings::savePersonal(QString profileName, QString password) ps.setValue("enableLogging", enableLogging); ps.endGroup(); - ps.write(); + ps.save(); } uint32_t Settings::makeProfileId(const QString& profile) diff --git a/src/persistence/settingsserializer.cpp b/src/persistence/settingsserializer.cpp index 698aecbe2..500bb9260 100644 --- a/src/persistence/settingsserializer.cpp +++ b/src/persistence/settingsserializer.cpp @@ -74,20 +74,6 @@ SettingsSerializer::SettingsSerializer(QString filePath, QString password) : path{filePath}, password{password}, group{-1}, array{-1}, arrayIndex{-1} { - if (isSerializedFormat(filePath)) - readSerialized(); - else - readIni(); - - /* Dump state for debugging - qDebug() << "SettingsSerializer data:"; - for (int i=0; i