From 89df4aa15038295fb478d198385bf8b692b8269a Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 5 Nov 2023 12:09:12 +0100 Subject: [PATCH] Fix active user check --- src/MainWindow.cpp | 6 +++--- 1 file 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