diff options
Diffstat (limited to 'application/InstanceWindow.cpp')
-rw-r--r-- | application/InstanceWindow.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/InstanceWindow.cpp b/application/InstanceWindow.cpp index dfc7b815..0b9d7019 100644 --- a/application/InstanceWindow.cpp +++ b/application/InstanceWindow.cpp @@ -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); + } } } |