From 5da9f8fbe4f2221bb6ec7ce08140c17ef0754b18 Mon Sep 17 00:00:00 2001 From: Jacob Brydolf Date: Mon, 7 Nov 2016 11:09:31 +0100 Subject: [PATCH] standardDialog: close window before continue --- components/StandardDialog.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/StandardDialog.qml b/components/StandardDialog.qml index 8f7e0e8d..f93a22ea 100644 --- a/components/StandardDialog.qml +++ b/components/StandardDialog.qml @@ -109,8 +109,9 @@ Window { text: qsTr("Ok") KeyNavigation.tab: cancelButton onClicked: { - root.accepted() root.close() + root.accepted() + } } @@ -125,8 +126,8 @@ Window { text: qsTr("Cancel") KeyNavigation.tab: passwordInput onClicked: { - root.rejected() root.close() + root.rejected() } } }