Fix: Cancelling the password prompt of the PSK database doesn't keep endlessly asking for password.
This commit is contained in:
parent
ecae0464f9
commit
27fde22d54
1 changed files with 6 additions and 2 deletions
|
|
@ -187,8 +187,12 @@ bool MasterController::UnlockPasswordManagerIfNeeded()
|
||||||
int exec_result = dlg->exec();
|
int exec_result = dlg->exec();
|
||||||
bool ok = (exec_result == QDialog::Accepted);
|
bool ok = (exec_result == QDialog::Accepted);
|
||||||
|
|
||||||
// IF user gave OK
|
if (!ok) {
|
||||||
if (ok && m_passwordManager->openDatabase(m_userConfigDatabase, dlg->password()))
|
// leave this retry loop
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
// user gave OK, if succeeds return true otherwise loop a prompt for password again.
|
||||||
|
if (m_passwordManager->openDatabase(m_userConfigDatabase, dlg->password()))
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue