Fix settings groups not being terminated properly on logout

fixes #1094
This commit is contained in:
Nicolas Werner 2022-06-15 22:36:16 +02:00
parent 4ec92e0244
commit 81d4285580
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 4 additions and 0 deletions

View File

@ -297,6 +297,10 @@ ChatPage::deleteConfigs()
settings->beginGroup(QStringLiteral("auth"));
settings->remove(QLatin1String(""));
settings->endGroup(); // auth
if (UserSettings::instance()->profile() != QLatin1String("")) {
settings->endGroup(); // profilename
settings->endGroup(); // profile
}
http::client()->shutdown();
cache::deleteData();