1
mirror of https://github.com/monero-project/monero-gui synced 2024-11-19 13:37:13 +01:00

tx confirm password dialog: clear when cancelled

This commit is contained in:
stoffu 2017-10-29 13:00:18 +09:00
parent 6f14fde89c
commit 1e4e8ae59a
No known key found for this signature in database
GPG Key ID: 41DAB8343A9EC012

View File

@ -930,6 +930,9 @@ ApplicationWindow {
} }
transactionConfirmationPasswordDialog.password = "" transactionConfirmationPasswordDialog.password = ""
} }
transactionConfirmationPasswordDialog.onRejectedCallback = function() {
transactionConfirmationPasswordDialog.password = ""
}
transactionConfirmationPasswordDialog.open() transactionConfirmationPasswordDialog.open()
} }
} }
@ -983,10 +986,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();
}
} }
DaemonManagerDialog { DaemonManagerDialog {