summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index ac327b82..d8907740 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -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();