From: mpv Date: Tue, 15 Sep 2015 14:38:18 +0000 (+0300) Subject: Fix for issue #980 X-Git-Tag: V_1.4.0~65 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f4cfe8737541aa62dd7dd713e63702e99db4c2db;p=modules%2Fshaper.git Fix for issue #980 --- diff --git a/src/Model/Model_Data.cpp b/src/Model/Model_Data.cpp index 755da1593..8d21b7a78 100644 --- a/src/Model/Model_Data.cpp +++ b/src/Model/Model_Data.cpp @@ -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); } }