From 9b4b153eadd847c1698c74045264e82d7d2a8569 Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 2 Apr 2018 13:43:35 +0200 Subject: [PATCH] MDIView: remove from parent before close --- src/Gui/MDIView.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 {