mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
PasswordDialog: UI improvements
This commit is contained in:
+3
-3
@@ -1627,15 +1627,15 @@ void MainWindow::updateRecentlyOpenedMenu() {
|
||||
}
|
||||
|
||||
bool MainWindow::verifyPassword() {
|
||||
bool ok;
|
||||
bool incorrectPassword = false;
|
||||
while (true) {
|
||||
PasswordDialog passwordDialog{this->walletName(), false, this};
|
||||
PasswordDialog passwordDialog{this->walletName(), incorrectPassword, true, this};
|
||||
int ret = passwordDialog.exec();
|
||||
if (ret == QDialog::Rejected) {
|
||||
return false;
|
||||
}
|
||||
if (passwordDialog.password != m_ctx->wallet->getPassword()) {
|
||||
QMessageBox::warning(this, "Error", "Incorrect password");
|
||||
incorrectPassword = true;
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user