Merge pull request #936

1e4e8ae tx confirm password dialog: clear when cancelled
This commit is contained in:
luigi1111 2017-11-06 16:33:32 -06:00
commit a01bb509ea
No known key found for this signature in database
GPG key ID: F4ACA0183641E010

View file

@ -992,6 +992,9 @@ ApplicationWindow {
} }
transactionConfirmationPasswordDialog.password = "" transactionConfirmationPasswordDialog.password = ""
} }
transactionConfirmationPasswordDialog.onRejectedCallback = function() {
transactionConfirmationPasswordDialog.password = ""
}
transactionConfirmationPasswordDialog.open() transactionConfirmationPasswordDialog.open()
} }
} }
@ -1109,10 +1112,15 @@ ApplicationWindow {
PasswordDialog { PasswordDialog {
id: transactionConfirmationPasswordDialog id: transactionConfirmationPasswordDialog
property var onAcceptedCallback property var onAcceptedCallback
property var onRejectedCallback
onAccepted: { onAccepted: {
if (onAcceptedCallback()) if (onAcceptedCallback)
onAcceptedCallback(); onAcceptedCallback();
} }
onRejected: {
if (onRejectedCallback)
onRejectedCallback();
}
} }
PasswordDialog { PasswordDialog {