mainview: quit the application when closing the wizard window
Change-Id: I66b7867d38ddcbec6fd68728d9282f32c11d7449
diff --git a/src/MainApplicationWindow.qml b/src/MainApplicationWindow.qml
index 8f59013..ed266a4 100644
--- a/src/MainApplicationWindow.qml
+++ b/src/MainApplicationWindow.qml
@@ -95,10 +95,12 @@
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()
}
}
}