From: vsv Date: Thu, 22 Aug 2019 14:32:26 +0000 (+0300) Subject: Issue #2958: Full update data tree on create part X-Git-Tag: VEDF2019Lot4~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25fe15fc9ca302345f134a9c37267a713a1b2367;p=modules%2Fshaper.git Issue #2958: Full update data tree on create part --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 32548038c..1675b4183 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -67,6 +67,13 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess for (aIt = aObjects.cbegin(); aIt != aObjects.cend(); aIt++) { if ((*aIt)->isInHistory()) aCreated.append(*aIt); + if ((*aIt)->groupName() == ModelAPI_ResultPart::group()) { + emit beforeTreeRebuild(); + myRoot->update(); + rebuildDataTree(); + emit treeRebuilt(); + return; + } } if (aCreated.length() == 0) return;