mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Don't attempt to begin group ""
This commit is contained in:
parent
777b9bf20d
commit
343c9c8116
1 changed files with 5 additions and 3 deletions
|
@ -449,12 +449,14 @@ ChatPage::deleteConfigs()
|
|||
{
|
||||
QSettings settings;
|
||||
|
||||
QString profilePrefix = (UserSettings::instance()->profile() == "default" ? "" : QString("profile/%1").arg(UserSettings::instance()->profile()));
|
||||
settings.beginGroup(profilePrefix);
|
||||
if (UserSettings::instance()->profile() != "")
|
||||
{
|
||||
settings.beginGroup("profile");
|
||||
settings.beginGroup(UserSettings::instance()->profile());
|
||||
}
|
||||
settings.beginGroup("auth");
|
||||
settings.remove("");
|
||||
settings.endGroup(); // auth
|
||||
settings.endGroup(); // profilePrefix
|
||||
|
||||
http::client()->shutdown();
|
||||
cache::deleteData();
|
||||
|
|
Loading…
Reference in a new issue