From 577be889cd52fc2d896a5f39c66bc2cadb8622e4 Mon Sep 17 00:00:00 2001 From: Andrew Chow Date: Fri, 23 Jun 2023 14:23:27 -0400 Subject: gui: Optionally return passphrase after unlocking AskPassphraseDialog has an optional parameter for the caller to get the passphrase. Make this available for Unlocking. --- src/qt/askpassphrasedialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/qt/askpassphrasedialog.cpp') 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) { -- cgit v1.2.3