mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18: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;
|
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();
|
||||||
|
|
Loading…
Reference in a new issue