trezor: assume empty passphrase if cancelled

This commit is contained in:
tobtoht 2023-03-04 00:10:17 +01:00
parent bbe65feab7
commit 33dd6f3c83
No known key found for this signature in database
GPG key ID: E45B10DD027D2472

View file

@ -549,11 +549,7 @@ void WindowManager::onWalletPassphraseNeeded(bool on_device) {
bool ok;
QString passphrase = QInputDialog::getText(nullptr, "Wallet Passphrase Needed", "Enter passphrase:", QLineEdit::EchoMode::Password, "", &ok);
if (ok) {
m_walletManager->onPassphraseEntered(passphrase, false, false);
} else {
m_walletManager->onPassphraseEntered(passphrase, false, true);
}
m_walletManager->onPassphraseEntered(passphrase, false, false);
}
// ######################## TRAY ########################