mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
Merge pull request #936
1e4e8ae
tx confirm password dialog: clear when cancelled
This commit is contained in:
commit
a01bb509ea
1 changed files with 9 additions and 1 deletions
10
main.qml
10
main.qml
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue