GH-1642 fix instance launch from console

This commit is contained in:
Petr Mrázek
2016-08-09 22:29:17 +02:00
parent 877d1020db
commit 74b4343c43
6 changed files with 17 additions and 6 deletions

View File

@ -157,6 +157,11 @@ void InstanceWindow::closeEvent(QCloseEvent *event)
{
emit isClosing();
event->accept();
if(m_shouldQuit)
{
// this needs to be delayed so we don't do horrible things
QMetaObject::invokeMethod(MMC, "quit", Qt::QueuedConnection);
}
}
}