Skip to content

Commit

Permalink
[TD]fix potential crash if page deletes self
Browse files Browse the repository at this point in the history
  • Loading branch information
WandererFan committed Jan 16, 2020
1 parent 841a673 commit ab3941a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Mod/TechDraw/Gui/MDIViewPage.cpp
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit ab3941a

Please sign in to comment.