]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2624: Process last feature in folder
authorvsv <vsv@opencascade.com>
Thu, 6 Sep 2018 07:53:19 +0000 (10:53 +0300)
committervsv <vsv@opencascade.com>
Thu, 6 Sep 2018 07:53:19 +0000 (10:53 +0300)
src/PartSet/PartSet_TreeNodes.cpp

index 771e0f42e264323b4bed759ffcddc580cdd2279c..a57bb17759fae463f8b5554d59ddbf25cdaac06f 100644 (file)
@@ -1018,6 +1018,11 @@ void PartSet_ObjectFolderNode::update()
         continue;
       }
     }
+    else {
+      myChildren.removeAll(aNode);
+      delete aNode;
+      continue;
+    }
     aId++;
   }
 
@@ -1096,6 +1101,12 @@ QTreeNodesList PartSet_ObjectFolderNode::objectsDeleted(const DocumentPtr& theDo
         continue;
       }
     }
+    else {
+      myChildren.removeAll(aNode);
+      delete aNode;
+      aRemoved = true;
+      continue;
+    }
     aId++;
   }
   if (aRemoved) {