forked from Public/monero-gui
tx confirm password dialog: clear when cancelled
This commit is contained in:
10
main.qml
10
main.qml
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user