diff options
| author | xiphon <xiphon@protonmail.com> | 2018-10-24 03:50:56 +0000 |
|---|---|---|
| committer | xiphon <xiphon@protonmail.com> | 2018-10-24 06:54:31 +0300 |
| commit | 39855241fcd0747ebe95e2e92cd5cfcb2d5a64be (patch) | |
| tree | f29dbcb964c9a8d1e25b37a2d83f95199a16a01a /main.qml | |
| parent | 3aa6da058a697378d8b6ee0864a559c207a332e2 (diff) | |
| download | monzero-gui-39855241fcd0747ebe95e2e92cd5cfcb2d5a64be.tar.gz monzero-gui-39855241fcd0747ebe95e2e92cd5cfcb2d5a64be.tar.xz monzero-gui-39855241fcd0747ebe95e2e92cd5cfcb2d5a64be.zip | |
password dialog: show error in place
Diffstat (limited to 'main.qml')
| -rw-r--r-- | main.qml | 15 |
1 files changed, 2 insertions, 13 deletions
@@ -397,15 +397,9 @@ ApplicationWindow { } // opening with password but password doesn't match console.error("Error opening wallet with password: ", wallet.errorString); - informationPopup.title = qsTr("Error") + translationManager.emptyString; - informationPopup.text = qsTr("Couldn't open wallet: ") + wallet.errorString; - informationPopup.icon = StandardIcon.Critical + passwordDialog.showError(qsTr("Couldn't open wallet: ") + wallet.errorString); console.log("closing wallet async : " + wallet.address) closeWallet(); - informationPopup.open() - informationPopup.onCloseCallback = function() { - passwordDialog.open(walletName) - } return; } @@ -1064,12 +1058,7 @@ ApplicationWindow { handleTransactionConfirmed() } } else { - informationPopup.title = qsTr("Error") + translationManager.emptyString; - informationPopup.text = qsTr("Wrong password"); - informationPopup.open() - informationPopup.onCloseCallback = function() { - passwordDialog.open() - } + passwordDialog.showError(qsTr("Wrong password")); } } passwordDialog.onRejectedCallback = null; |
