From c467ebf1327d6266fc51443edfac6f0b536b6602 Mon Sep 17 00:00:00 2001 From: Sky Date: Sat, 26 Oct 2013 08:38:21 +0100 Subject: Fix "no windows means MMC exits prematurely" issue --- MultiMC.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'MultiMC.cpp') diff --git a/MultiMC.cpp b/MultiMC.cpp index 25c53185..3d62f76e 100644 --- a/MultiMC.cpp +++ b/MultiMC.cpp @@ -37,6 +37,9 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) initTranslations(); + // Don't quit on hiding the last window + this->setQuitOnLastWindowClosed(false); + // Print app header std::cout << "MultiMC 5" << std::endl; std::cout << "(c) 2013 MultiMC Contributors" << std::endl << std::endl; @@ -158,6 +161,7 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv) m_status = MultiMC::Failed; return; } + m_status = MultiMC::Initialized; } -- cgit v1.2.3