+ // after widget, object browser and viewer should process delete
+ /// other widgets such as line edit controls should not lead to
+ /// processing delete by workshop
+ XGUI_ObjectsBrowser* aBrowser = workshop()->objectBrowser();
+ QWidget* aViewPort = myWorkshop->viewer()->activeViewPort();
+ // property panel child object is processed to process delete performed on Apply button of PP
+ if (theObject == aBrowser->treeView() ||
+ isChildObject(theObject, aViewPort) ||
+ isPPChildObject)
+ workshop()->deleteObjects();