From c12d08a0037512685d122a8efc959d95052fbb65 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 1 Nov 2018 11:31:15 +0300 Subject: [PATCH] Fix for deletion of groups --- src/PartSet/PartSet_TreeNodes.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- 2.39.2