Salome HOME
Make same planes cannot be used twice in partition tool
[modules/shaper.git] / src / XGUI / XGUI_OperationMgr.cpp
index 533bb6adce8006e68fdd757cf9bdba069e5c1430..3e6c412235cbbcaef8a5b84a0576d08f1632c321 100644 (file)
@@ -667,7 +667,7 @@ bool XGUI_OperationMgr::onProcessDelete(QObject* theObject)
     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 (isChildObject(theObject, aBrowser) ||
+    if (theObject == aBrowser->treeView() ||
         isChildObject(theObject, aViewPort) ||
         isPPChildObject)
       workshop()->deleteObjects();