Compare commits

...

1 Commits

Author SHA1 Message Date
dbcc74ce09 set QSettings account array size when saving 2021-12-19 22:27:29 +08:00

View File

@ -71,7 +71,7 @@ void Core::Squawk::stop()
if (isInitialized) {
QSettings settings;
settings.beginGroup("core");
settings.beginWriteArray("accounts");
settings.beginWriteArray("accounts", accounts.size());
SimpleCrypt crypto(passwordHash);
for (std::deque<Account*>::size_type i = 0; i < accounts.size(); ++i) {
settings.setArrayIndex(i);