Skip to content

Commit 577be88

Browse files
committed
gui: Optionally return passphrase after unlocking
AskPassphraseDialog has an optional parameter for the caller to get the passphrase. Make this available for Unlocking.
1 parent 5b3a85b commit 577be88

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/askpassphrasedialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ void AskPassphraseDialog::accept()
167167
"passphrase to avoid this issue in the future."));
168168
}
169169
} else {
170+
if (m_passphrase_out) {
171+
m_passphrase_out->assign(oldpass);
172+
}
170173
QDialog::accept(); // Success
171174
}
172175
} catch (const std::runtime_error& e) {

0 commit comments

Comments
 (0)