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

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
This commit is contained in:
tux3 2015-06-10 15:14:36 +02:00
parent f0f2776050
commit 0267e2654a
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -401,6 +401,8 @@ void SettingsSerializer::readSerialized()
//qDebug() <<"!Array end"; //qDebug() <<"!Array end";
} }
} }
group = array = -1;
} }
void SettingsSerializer::readIni() void SettingsSerializer::readIni()
@ -545,6 +547,8 @@ void SettingsSerializer::readIni()
//qDebug() << "Removing spurious array group"<<g<<groupSizes[g]; //qDebug() << "Removing spurious array group"<<g<<groupSizes[g];
removeGroup(g); removeGroup(g);
} }
group = array = -1;
} }
void SettingsSerializer::removeGroup(int group) void SettingsSerializer::removeGroup(int group)