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:
Andrew Chow committed 2023-06-23 14:24:31 -04:00
1 parent 5b3a85b4c6
commit 577be889cd
1 file changed
+3
+3
View File
@@ -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) {