diff --git a/src/Gui/MDIView.cpp b/src/Gui/MDIView.cpp index 6bf2aef74a..1f6421429a 100644 --- a/src/Gui/MDIView.cpp +++ b/src/Gui/MDIView.cpp @@ -94,6 +94,10 @@ void MDIView::deleteSelf() QWidget* parent = this->parentWidget(); if (qobject_cast(parent)) { // https://forum.freecadweb.org/viewtopic.php?f=22&t=23070 +#if QT_VERSION < 0x050000 + // With Qt5 this would lead to some annoying flickering + getMainWindow()->removeWindow(this); +#endif parent->close(); } else {