PasswordDialog: show warning if password incorrect

This commit is contained in:
tobtoht
2020-11-24 15:16:20 +01:00
parent e6e669845c
commit c44ee73ed0
5 changed files with 156 additions and 11 deletions
+5 -1
View File
@@ -282,6 +282,10 @@ void AppContext::onOpenWallet(const QString &path, const QString &password){
return;
}
if (password.isEmpty()) {
this->walletPassword = "";
}
config()->set(Config::firstRun, false);
this->walletPath = path;
@@ -316,7 +320,7 @@ void AppContext::onWalletOpened(Wallet *wallet) {
emit walletOpenedError(errMsg);
} else {
this->walletClose(false);
emit walletOpenPasswordNeeded(this->walletPassword.isEmpty(), wallet->path());
emit walletOpenPasswordNeeded(!this->walletPassword.isEmpty(), wallet->path());
}
return;
}