summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/MainWindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index e25619cd..b7834cba 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -251,9 +251,9 @@ MainWindow::hasActiveUser()
     if (userSettings_->profile() != QLatin1String(""))
         prefix = "profile/" + userSettings_->profile() + "/";
 
-    return settings->contains(prefix + "auth/access_token") &&
-           settings->contains(prefix + "auth/home_server") &&
-           settings->contains(prefix + "auth/user_id");
+    return !settings->value(prefix + "auth/access_token").toString().isEmpty() &&
+           !settings->value(prefix + "auth/home_server").toString().isEmpty() &&
+           !settings->value(prefix + "auth/user_id").toString().isEmpty();
 }
 
 bool