diff options
author | Petr Mrázek <peterix@gmail.com> | 2016-08-09 22:29:17 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2016-08-09 22:29:17 +0200 |
commit | 74b4343c43cb0f3fc85cf27d1159349d0b3f32e6 (patch) | |
tree | 5e32c9bfb0dc6f76e0404c581b3ca43a26ee3e35 /application/InstanceWindow.h | |
parent | 877d1020db4acfd5085a27cad013b7d03177ba0b (diff) | |
download | PrismLauncher-74b4343c43cb0f3fc85cf27d1159349d0b3f32e6.tar.gz PrismLauncher-74b4343c43cb0f3fc85cf27d1159349d0b3f32e6.tar.bz2 PrismLauncher-74b4343c43cb0f3fc85cf27d1159349d0b3f32e6.zip |
GH-1642 fix instance launch from console
Diffstat (limited to 'application/InstanceWindow.h')
-rw-r--r-- | application/InstanceWindow.h | 7 |
1 files changed, 6 insertions, 1 deletions
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<LaunchTask> m_proc; unique_qobject_ptr<LaunchController> 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; |