]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for issue #980
authormpv <mpv@opencascade.com>
Tue, 15 Sep 2015 14:38:18 +0000 (17:38 +0300)
committermpv <mpv@opencascade.com>
Tue, 15 Sep 2015 14:38:18 +0000 (17:38 +0300)
src/Model/Model_Data.cpp

index 755da15937bc625ebeea298c2b08c5ea8db7feb1..8d21b7a7834e5a8ed8d12fcf21fa41fb80dc7af1 100644 (file)
@@ -304,9 +304,10 @@ void Model_Data::execState(const ModelAPI_ExecState theState)
   if (theState != ModelAPI_StateNothing) {
     if (stateArray(myLab)->Value(STATE_INDEX_STATE) != (int)theState) {
       stateArray(myLab)->SetValue(STATE_INDEX_STATE, (int)theState);
-      static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_ERROR_CHANGED);
-      ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent, false);
     }
+    // send signal even if the new value corresponds to the one in data model: undo issue 980
+    static const Events_ID anEvent = Events_Loop::eventByName(EVENT_OBJECT_ERROR_CHANGED);
+    ModelAPI_EventCreator::get()->sendUpdated(myObject, anEvent, false);
   }
 }