]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModelAPI/ModelAPI_Feature.cpp
Salome HOME
Multiple fixes (issue #1757 , issue #1799 , issue #1842 , etc):
[modules/shaper.git] / src / ModelAPI / ModelAPI_Feature.cpp
index ad496462bd8c70e183b6e5574b320543313a0442..b3b60c7926d9207da78aa997b1e827c4fc826284 100644 (file)
@@ -188,6 +188,12 @@ bool ModelAPI_Feature::setDisabled(const bool theFlag)
       for(; aResIter != myResults.end(); aResIter++) {
         (*aResIter)->setDisabled(*aResIter, false);
       }
+      // update selection for the case something was updated higher in the history
+      // while this feature was disabled
+      static Events_Loop* aLoop = Events_Loop::loop();
+      static Events_ID kUpdatedSel = aLoop->eventByName(EVENT_UPDATE_SELECTION);
+      static const ModelAPI_EventCreator* aECreator = ModelAPI_EventCreator::get();
+      aECreator->sendUpdated(data()->owner(), kUpdatedSel, false);
     }
     return true;
   }