]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for Groups folder update: sometimes groups became disabled and never appeared...
authormpv <mpv@opencascade.com>
Tue, 6 Oct 2015 14:01:41 +0000 (17:01 +0300)
committermpv <mpv@opencascade.com>
Tue, 6 Oct 2015 14:01:41 +0000 (17:01 +0300)
src/FeaturesPlugin/FeaturesPlugin_Group.cpp

index 98c6266ef83756dc29e10aac3e2b208c5ceebb08..182a1d74c0f16da727629969d45c136c016950ef 100644 (file)
@@ -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);
   }