From 4903973b2388d3747512fb35a62570f56312cea3 Mon Sep 17 00:00:00 2001
From: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Date: Mon, 31 Aug 2020 19:28:33 -0400
Subject: [PATCH] mainview: quit the application when closing the wizard window

Change-Id: I66b7867d38ddcbec6fd68728d9282f32c11d7449
---
 src/MainApplicationWindow.qml | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/MainApplicationWindow.qml b/src/MainApplicationWindow.qml
index 8f5901317..ed266a450 100644
--- a/src/MainApplicationWindow.qml
+++ b/src/MainApplicationWindow.qml
@@ -95,10 +95,12 @@ ApplicationWindow {
                 wizardView.close()
             }
 
-            onWizardViewIsClosed: {
-                if (mainViewLoader.source.toString() !== "qrc:/src/mainview/MainView.qml") {
-                    Qt.quit()
-                }
+            onWizardViewIsClosed: parent.close()
+        }
+
+        onClosing: {
+            if (mainViewLoader.source.toString() !== "qrc:/src/mainview/MainView.qml") {
+                Qt.quit()
             }
         }
     }
-- 
GitLab