From 74b4343c43cb0f3fc85cf27d1159349d0b3f32e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 9 Aug 2016 22:29:17 +0200 Subject: GH-1642 fix instance launch from console --- application/InstanceWindow.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'application/InstanceWindow.h') diff --git a/application/InstanceWindow.h b/application/InstanceWindow.h index 7ffc4142..db84b9be 100644 --- a/application/InstanceWindow.h +++ b/application/InstanceWindow.h @@ -36,6 +36,11 @@ public: QString instanceId(); + void setQuitOnClose(bool shouldQuit = false) + { + m_shouldQuit = shouldQuit; + } + signals: void isClosing(); @@ -61,7 +66,7 @@ private: std::shared_ptr m_proc; unique_qobject_ptr m_launchController; InstancePtr m_instance; - bool m_mayclose = true; + bool m_shouldQuit = false; PageContainer *m_container = nullptr; QPushButton *m_closeButton = nullptr; QPushButton *m_killButton = nullptr; -- cgit v1.2.3