diff options
| author | stoffu <stoffu@protonmail.ch> | 2017-10-29 13:00:18 +0900 |
|---|---|---|
| committer | stoffu <stoffu@protonmail.ch> | 2017-10-29 13:00:18 +0900 |
| commit | 1e4e8ae59a272ccd8cd6aa887b84c33c96a7e0e6 (patch) | |
| tree | e494788241d6fcc1b7a59beab0872ccb51f9b29e | |
| parent | 6f14fde89c98eee723755f6505707fb8c7b0e63d (diff) | |
| download | monzero-gui-1e4e8ae59a272ccd8cd6aa887b84c33c96a7e0e6.tar.gz monzero-gui-1e4e8ae59a272ccd8cd6aa887b84c33c96a7e0e6.tar.xz monzero-gui-1e4e8ae59a272ccd8cd6aa887b84c33c96a7e0e6.zip | |
tx confirm password dialog: clear when cancelled
| -rw-r--r-- | main.qml | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -930,6 +930,9 @@ ApplicationWindow { } transactionConfirmationPasswordDialog.password = "" } + transactionConfirmationPasswordDialog.onRejectedCallback = function() { + transactionConfirmationPasswordDialog.password = "" + } transactionConfirmationPasswordDialog.open() } } @@ -983,10 +986,15 @@ ApplicationWindow { PasswordDialog { id: transactionConfirmationPasswordDialog property var onAcceptedCallback + property var onRejectedCallback onAccepted: { - if (onAcceptedCallback()) + if (onAcceptedCallback) onAcceptedCallback(); } + onRejected: { + if (onRejectedCallback) + onRejectedCallback(); + } } DaemonManagerDialog { |
