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:
parent
f0f2776050
commit
0267e2654a
|
@ -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"<<g<<groupSizes[g];
|
||||
removeGroup(g);
|
||||
}
|
||||
|
||||
group = array = -1;
|
||||
}
|
||||
|
||||
void SettingsSerializer::removeGroup(int group)
|
||||
|
|
Loading…
Reference in New Issue
Block a user