reshow login dialog in case account login fails
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
bee59c904a
commit
75756b49c3
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user