[TD]fix potential crash if page deletes self
This commit is contained in:
@@ -400,9 +400,6 @@ 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