aboutsummaryrefslogtreecommitdiff
path: root/src/qt/askpassphrasedialog.cpp
diff options
context:
space:
mode:
authorAndrew Chow <github@achow101.com>2023-06-23 14:23:27 -0400
committerAndrew Chow <github@achow101.com>2023-06-23 14:24:31 -0400
commit577be889cd52fc2d896a5f39c66bc2cadb8622e4 (patch)
tree16ba8674ebbe666efd5214db8e6fc8c16487f3e5 /src/qt/askpassphrasedialog.cpp
parent5b3a85b4c6ffd1f29a917d4c1af4bff6c0ea2ef5 (diff)
gui: Optionally return passphrase after unlocking
AskPassphraseDialog has an optional parameter for the caller to get the passphrase. Make this available for Unlocking.
Diffstat (limited to 'src/qt/askpassphrasedialog.cpp')
-rw-r--r--src/qt/askpassphrasedialog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qt/askpassphrasedialog.cpp b/src/qt/askpassphrasedialog.cpp
index 0a96be038b..246dff0069 100644
--- a/src/qt/askpassphrasedialog.cpp
+++ b/src/qt/askpassphrasedialog.cpp
@@ -167,6 +167,9 @@ void AskPassphraseDialog::accept()
"passphrase to avoid this issue in the future."));
}
} else {
+ if (m_passphrase_out) {
+ m_passphrase_out->assign(oldpass);
+ }
QDialog::accept(); // Success
}
} catch (const std::runtime_error& e) {