From: vsv Date: Thu, 1 Nov 2018 08:31:15 +0000 (+0300) Subject: Fix for deletion of groups X-Git-Tag: End2018~218 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d7104b51e7b7859d5d78834f1294b12ce923c92f;p=modules%2Fshaper.git Fix for deletion of groups --- diff --git a/src/PartSet/PartSet_TreeNodes.cpp b/src/PartSet/PartSet_TreeNodes.cpp index 54859794c..a2bc7be62 100644 --- a/src/PartSet/PartSet_TreeNodes.cpp +++ b/src/PartSet/PartSet_TreeNodes.cpp @@ -865,9 +865,15 @@ void PartSet_PartRootNode::update() if (aHasFields && (!myChildren.contains(myFieldsFolder))) { myChildren.insert(3, myFieldsFolder); } + else if (myChildren.contains(myFieldsFolder)) { + myChildren.removeAll(myFieldsFolder); + } if (aHasGroups && (!myChildren.contains(myGroupsFolder))) { myChildren.insert(aHasFields ? 4 : 3, myGroupsFolder); } + else if (myChildren.contains(myGroupsFolder)) { + myChildren.removeAll(myGroupsFolder); + } // Update features content int aRows = numberOfFolders();