Fix active user check

pull/1614/head
Nicolas Werner 1 year ago
parent 67c69fd861
commit 89df4aa150
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 6
      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

Loading…
Cancel
Save