Fix "no windows means MMC exits prematurely" issue
This commit is contained in:
parent
0430a2a38f
commit
c467ebf132
@ -37,6 +37,9 @@ MultiMC::MultiMC(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
|
|
||||||
initTranslations();
|
initTranslations();
|
||||||
|
|
||||||
|
// Don't quit on hiding the last window
|
||||||
|
this->setQuitOnLastWindowClosed(false);
|
||||||
|
|
||||||
// Print app header
|
// Print app header
|
||||||
std::cout << "MultiMC 5" << std::endl;
|
std::cout << "MultiMC 5" << std::endl;
|
||||||
std::cout << "(c) 2013 MultiMC Contributors" << std::endl << 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;
|
m_status = MultiMC::Failed;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
m_status = MultiMC::Initialized;
|
m_status = MultiMC::Initialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -444,6 +444,7 @@ void MainWindow::closeEvent(QCloseEvent *event)
|
|||||||
// settings->getConfig().setValue("MainWindowGeometry", saveGeometry());
|
// settings->getConfig().setValue("MainWindowGeometry", saveGeometry());
|
||||||
// settings->getConfig().setValue("MainWindowState", saveState());
|
// settings->getConfig().setValue("MainWindowState", saveState());
|
||||||
QMainWindow::closeEvent(event);
|
QMainWindow::closeEvent(event);
|
||||||
|
QApplication::exit();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
void MainWindow::on_instanceView_customContextMenuRequested(const QPoint &pos)
|
void MainWindow::on_instanceView_customContextMenuRequested(const QPoint &pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user