diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp index 6c71b4ed53..56f6d569a6 100644 --- a/src/Gui/MainWindow.cpp +++ b/src/Gui/MainWindow.cpp @@ -1546,6 +1546,7 @@ void MainWindow::closeEvent (QCloseEvent * e) if (this->property("QuitOnClosed").isValid()) { QApplication::closeAllWindows(); + qApp->processEvents(); // flush all pending deferredDelete events qApp->quit(); // stop the event loop } }