From 0267e2654a8913984cbc235d77e460691fb6f3f9 Mon Sep 17 00:00:00 2001 From: tux3 Date: Wed, 10 Jun 2015 15:14:36 +0200 Subject: [PATCH] Fix SettingsSerializer not resetting after load After loading SettingsSerializer would keep the last group/array as current, so setting new values before the next beginGroup/beginWriteArray would be added to this group/array wrongly This has zero inpact on qTox since we don't load before saving --- src/persistence/settingsserializer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/persistence/settingsserializer.cpp b/src/persistence/settingsserializer.cpp index ab83999db..77a22fb7a 100644 --- a/src/persistence/settingsserializer.cpp +++ b/src/persistence/settingsserializer.cpp @@ -401,6 +401,8 @@ void SettingsSerializer::readSerialized() //qDebug() <<"!Array end"; } } + + group = array = -1; } void SettingsSerializer::readIni() @@ -545,6 +547,8 @@ void SettingsSerializer::readIni() //qDebug() << "Removing spurious array group"<