mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-11 03:53:22 +02:00
gui: Optionally return passphrase after unlocking
AskPassphraseDialog has an optional parameter for the caller to get the passphrase. Make this available for Unlocking.
This commit is contained in:
@@ -167,6 +167,9 @@ void AskPassphraseDialog::accept()
|
|||||||
"passphrase to avoid this issue in the future."));
|
"passphrase to avoid this issue in the future."));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (m_passphrase_out) {
|
||||||
|
m_passphrase_out->assign(oldpass);
|
||||||
|
}
|
||||||
QDialog::accept(); // Success
|
QDialog::accept(); // Success
|
||||||
}
|
}
|
||||||
} catch (const std::runtime_error& e) {
|
} catch (const std::runtime_error& e) {
|
||||||
|
Reference in New Issue
Block a user