From 39855241fcd0747ebe95e2e92cd5cfcb2d5a64be Mon Sep 17 00:00:00 2001 From: xiphon Date: Wed, 24 Oct 2018 03:50:56 +0000 Subject: password dialog: show error in place --- js/Utils.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'js/Utils.js') diff --git a/js/Utils.js b/js/Utils.js index 9a6e4829..dad1f143 100644 --- a/js/Utils.js +++ b/js/Utils.js @@ -39,12 +39,7 @@ function showSeedPage() { // Load keys page appWindow.showPageRequest("Keys"); } 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 = function() { -- cgit v1.2.3