diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-05 12:09:12 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-11-05 12:09:29 +0100 |
commit | 89df4aa15038295fb478d198385bf8b692b8269a (patch) | |
tree | fbd97d87341b21c29cc1b6a51c08001c8283fc8e | |
parent | Make clazy happy (diff) | |
download | nheko-89df4aa15038295fb478d198385bf8b692b8269a.tar.xz |
Fix active user check
Diffstat (limited to '')
-rw-r--r-- | src/MainWindow.cpp | 6 |
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 |