]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix a bug of tree with ExtrusionCut operation launched from a script
authorvsv <vsv@opencascade.com>
Wed, 21 Nov 2018 12:13:13 +0000 (15:13 +0300)
committervsv <vsv@opencascade.com>
Wed, 21 Nov 2018 12:13:26 +0000 (15:13 +0300)
src/XGUI/XGUI_DataModel.cpp

index 95c80678b3bbe3b9597dd6ba0a167b2152b086f7..4980dd1984693bd1441f7e6f2944a5bc91f2eaa9 100644 (file)
@@ -142,7 +142,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
       foreach(ObjectPtr aObj, aCreated) {
         ModuleBase_ITreeNode* aNode = myRoot->subNode(aObj);
         if (aNode) {
-          aNode->update();
+          if (aNode->parent())
+            aNode->parent()->update();
+          else
+            aNode->update();
           rebuildDataTree();
           QModelIndex aFirstIdx = getIndex(aNode, 0);
           QModelIndex aLastIdx = getIndex(aNode, 2);