mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-18 23:58:59 +02:00
PasswordDialog: show warning if password incorrect
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user