From 7fca439ab3557d95daaa0cd72a29ecaa8a3802cc Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 2 Sep 2016 16:35:24 +0300 Subject: [PATCH] Fix for exception on deletion of a Part from PartSet when it is active --- src/XGUI/XGUI_DataModel.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; } } } -- 2.39.2