From: vsv Date: Fri, 2 Sep 2016 13:35:24 +0000 (+0300) Subject: Fix for exception on deletion of a Part from PartSet when it is active X-Git-Tag: V_2.5.0~71 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7fca439ab3557d95daaa0cd72a29ecaa8a3802cc;p=modules%2Fshaper.git Fix for exception on deletion of a Part from PartSet when it is active --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 3d14d5108..1296ae94d 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -149,8 +149,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess } } } - } else + } else { rebuildDataTree(); + break; + } } } // Deleted object event *********************** @@ -230,6 +232,9 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess break; } } + } else { + rebuildDataTree(); + break; } } }