Merge pull request #2830 from Trial97/login_wizard_retry

Show login dialog again if account login fails
This commit is contained in:
Alexandru Ionut Tripon 2024-09-17 08:44:41 +03:00 committed by GitHub
commit d06f0529a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,11 +35,10 @@ void LoginWizardPage::on_pushButton_clicked()
if (account) {
APPLICATION->accounts()->addAccount(account);
APPLICATION->accounts()->setDefaultAccount(account);
}
if (wizard()->currentId() == wizard()->pageIds().last()) {
wizard()->accept();
} else {
wizard()->next();
if (wizard()->currentId() == wizard()->pageIds().last()) {
wizard()->accept();
} else {
wizard()->next();
}
}
}