Salome HOME
Task #2924 implementation : Ability to remove a result
[modules/shaper.git] / src / ModuleBase / ModuleBase_Tools.cpp
index cdbd9202bdaa57fa9ac16ad4c33833e8a906fde6..e49a994ff0fac288f86a4cd4dce494658c162234 100644 (file)
@@ -992,6 +992,8 @@ bool askToDelete(const std::set<FeaturePtr> theFeatures,
   aLast = theReferencesToDelete.end();
   for (; anIt != aLast; anIt++) {
     FeaturePtr aFeature = *anIt;
+    if (aFeature->getKind() == "RemoveResults")
+      continue; // skip the remove results feature mentioning: result will be removed anyway
     if (isFeatureOfResult(aFeature, ModelAPI_ResultPart::group()))
       aPartFeatureNames.append(aFeature->name().c_str());
     else