From: mpv Date: Tue, 6 Oct 2015 14:01:41 +0000 (+0300) Subject: Fix for Groups folder update: sometimes groups became disabled and never appeared... X-Git-Tag: V_1.4.0_demo2~21 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=24f70f0c8c875919ff265dcd70cc9d8e0aa8a168;p=modules%2Fshaper.git Fix for Groups folder update: sometimes groups became disabled and never appeared in the Object Browser --- 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); }