From 52fac57d73dc9b89d93b05f336f94a1226bd9cf1 Mon Sep 17 00:00:00 2001 From: wmayer Date: Wed, 24 Feb 2016 21:32:30 +0100 Subject: [PATCH] + fix bug in MDIView --- src/Gui/MDIView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/MDIView.cpp b/src/Gui/MDIView.cpp index 9bf3cb0d5..56c5dae1f 100644 --- a/src/Gui/MDIView.cpp +++ b/src/Gui/MDIView.cpp @@ -84,6 +84,10 @@ void MDIView::deleteSelf() parent->deleteLater(); else this->deleteLater(); + + // detach from document + if (_pcDocument) + onClose(); _pcDocument = 0; }