+ close drawing view when deleting page object
This commit is contained in:
parent
3614a08911
commit
e7963472b0
|
@ -142,6 +142,15 @@ void ViewProviderDrawingPage::updateData(const App::Property* prop)
|
|||
}
|
||||
}
|
||||
|
||||
bool ViewProviderDrawingPage::onDelete(const std::vector<std::string> & items)
|
||||
{
|
||||
if (view) {
|
||||
view->parentWidget()->deleteLater();
|
||||
}
|
||||
|
||||
return ViewProviderDocumentObjectGroup::onDelete(items);
|
||||
}
|
||||
|
||||
void ViewProviderDrawingPage::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
{
|
||||
QAction* act;
|
||||
|
|
|
@ -65,6 +65,7 @@ public:
|
|||
virtual bool doubleClicked(void);
|
||||
void setupContextMenu(QMenu*, QObject*, const char*);
|
||||
virtual void updateData(const App::Property*);
|
||||
virtual bool onDelete(const std::vector<std::string> &);
|
||||
|
||||
Drawing::FeaturePage* getPageObject() const;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user