Don't attempt to begin group ""

This commit is contained in:
Loren Burkholder 2021-02-04 19:01:48 -05:00
parent 777b9bf20d
commit 343c9c8116

View file

@ -449,12 +449,14 @@ ChatPage::deleteConfigs()
{ {
QSettings settings; QSettings settings;
QString profilePrefix = (UserSettings::instance()->profile() == "default" ? "" : QString("profile/%1").arg(UserSettings::instance()->profile())); if (UserSettings::instance()->profile() != "")
settings.beginGroup(profilePrefix); {
settings.beginGroup("profile");
settings.beginGroup(UserSettings::instance()->profile());
}
settings.beginGroup("auth"); settings.beginGroup("auth");
settings.remove(""); settings.remove("");
settings.endGroup(); // auth settings.endGroup(); // auth
settings.endGroup(); // profilePrefix
http::client()->shutdown(); http::client()->shutdown();
cache::deleteData(); cache::deleteData();