Fix #3763 Page Tab not removed on undo
This commit is contained in:
@@ -313,6 +313,9 @@ void MDIViewPage::onDeleteObject(const App::DocumentObject& obj)
|
||||
//if this page has a QView for this obj, delete it.
|
||||
if (obj.isDerivedFrom(TechDraw::DrawView::getClassTypeId())) {
|
||||
(void) m_view->removeQViewByName(obj.getNameInDocument());
|
||||
} else if (m_objectName == obj.getNameInDocument()) {
|
||||
// if obj is me, hide myself and my tab
|
||||
m_vpPage->hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user