]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2958: Full update data tree on create part
authorvsv <vsv@opencascade.com>
Thu, 22 Aug 2019 14:32:26 +0000 (17:32 +0300)
committervsv <vsv@opencascade.com>
Thu, 22 Aug 2019 14:32:50 +0000 (17:32 +0300)
src/XGUI/XGUI_DataModel.cpp

index 32548038ce2b4ab3cb3be13906c04d5f89a73e8c..1675b41832ef71de13aba205eb44f5fe86edb2ad 100644 (file)
@@ -67,6 +67,13 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& 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;