summaryrefslogtreecommitdiffstats
path: root/MultiMC.cpp
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2013-10-26 08:38:21 +0100
committerSky <git@bunnies.cc>2013-10-26 08:38:21 +0100
commitc467ebf1327d6266fc51443edfac6f0b536b6602 (patch)
tree975225cfc5981d9f8e5b79ba224db02782aa4faf /MultiMC.cpp
parent0430a2a38fe3b6a18dc13090c236272fbb85df0b (diff)
downloadMultiMC-c467ebf1327d6266fc51443edfac6f0b536b6602.tar
MultiMC-c467ebf1327d6266fc51443edfac6f0b536b6602.tar.gz
MultiMC-c467ebf1327d6266fc51443edfac6f0b536b6602.tar.lz
MultiMC-c467ebf1327d6266fc51443edfac6f0b536b6602.tar.xz
MultiMC-c467ebf1327d6266fc51443edfac6f0b536b6602.zip
Fix "no windows means MMC exits prematurely" issue
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r--MultiMC.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}