Fix App logic in ViewProviders -> segfaults

This commit is contained in:
WandererFan
2016-04-02 12:49:52 -04:00
committed by wmayer
parent b8b6dcb30f
commit 31f0937478
5 changed files with 0 additions and 22 deletions

View File

@@ -145,8 +145,6 @@ void ViewProviderPage::updateData(const App::Property* prop)
bool ViewProviderPage::onDelete(const std::vector<std::string> &items)
{
if (!view.isNull()) {
// TODO: if DrawingPage has children, they should be deleted too, since they are useless without the page.
// logic is in the "this object has links are you sure" dialog
Gui::getMainWindow()->removeWindow(view);
Gui::getMainWindow()->activatePreviousWindow();
view->deleteLater(); // Delete the drawing view;