From: vsv Date: Thu, 6 Sep 2018 07:53:19 +0000 (+0300) Subject: Issue #2624: Process last feature in folder X-Git-Tag: V9_2_0a1~58 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4979b461952b56e8b58b520e78739d823963aac8;p=modules%2Fshaper.git Issue #2624: Process last feature in folder --- diff --git a/src/PartSet/PartSet_TreeNodes.cpp b/src/PartSet/PartSet_TreeNodes.cpp index 771e0f42e..a57bb1775 100644 --- a/src/PartSet/PartSet_TreeNodes.cpp +++ b/src/PartSet/PartSet_TreeNodes.cpp @@ -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) {