mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-25 12:16:37 +02:00
fixing logout bug from syntax reversion
This commit is contained in:
parent
d69e536120
commit
e7aef92e99
1 changed files with 1 additions and 3 deletions
|
@ -78,9 +78,7 @@ void LoginDialog::toggleAction() {
|
|||
if (accountManager->isLoggedIn()) {
|
||||
// change the menu item to logout
|
||||
loginAction->setText("Logout " + accountManager->getAccountInfo().getUsername());
|
||||
connection = connect(loginAction, &QAction::triggered, [] {
|
||||
LoginDialog::showWithSelection();
|
||||
});
|
||||
connection = connect(loginAction, &QAction::triggered, accountManager.data(), &AccountManager::logout);
|
||||
} else {
|
||||
// change the menu item to login
|
||||
loginAction->setText("Login / Sign Up");
|
||||
|
|
Loading…
Reference in a new issue