diff --git a/src/controller.cpp b/src/controller.cpp index 75c16e0..da5f522 100644 --- a/src/controller.cpp +++ b/src/controller.cpp @@ -420,7 +420,12 @@ void Controller::unlockIfEncrypted(std::function cb, std::functiontr("Wallet Password"), - main->tr("Please enter your wallet password"), QLineEdit::Password); + main->tr("Your wallet is encrypted.\nPlease enter your wallet password"), QLineEdit::Password); + + if (password.isEmpty()) { + error(); + return; + } zrpc->unlockWallet(password, [=](json reply) { if (isJsonSuccess(reply)) {