Skip to content
Snippets Groups Projects
Verified Commit 89df4aa1 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix active user check

parent 67c69fd8
No related branches found
No related tags found
No related merge requests found
Pipeline #5266 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment