From 25fe15fc9ca302345f134a9c37267a713a1b2367 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 22 Aug 2019 17:32:26 +0300 Subject: [PATCH] Issue #2958: Full update data tree on create part --- src/XGUI/XGUI_DataModel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.39.2