0000736: when object is deleted, auto show its parametric objects

This commit is contained in:
wmayer
2012-07-07 13:32:27 +02:00
parent d08334dacc
commit 847c44e6bb
5 changed files with 102 additions and 0 deletions

View File

@@ -405,6 +405,9 @@ void Document::slotDeletedObject(const App::DocumentObject& Obj)
// cycling to all views of the document
ViewProvider* viewProvider = getViewProvider(&Obj);
#if 0 // With this we can show child objects again if this method was called by undo
viewProvider->onDelete(std::vector<std::string>());
#endif
if (viewProvider && viewProvider->getTypeId().isDerivedFrom
(ViewProviderDocumentObject::getClassTypeId())) {
// go through the views