From 24f70f0c8c875919ff265dcd70cc9d8e0aa8a168 Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 6 Oct 2015 17:01:41 +0300 Subject: [PATCH] Fix for Groups folder update: sometimes groups became disabled and never appeared in the Object Browser --- src/FeaturesPlugin/FeaturesPlugin_Group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FeaturesPlugin/FeaturesPlugin_Group.cpp b/src/FeaturesPlugin/FeaturesPlugin_Group.cpp index 98c6266ef..182a1d74c 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Group.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Group.cpp @@ -28,7 +28,7 @@ void FeaturesPlugin_Group::initAttributes() void FeaturesPlugin_Group::execute() { - if (results().empty()) { // just create result if not exists + if (results().empty() || firstResult()->isDisabled()) { // just create result if not exists ResultPtr aGroup = document()->createGroup(data()); setResult(aGroup); } -- 2.39.2