From f4cfe8737541aa62dd7dd713e63702e99db4c2db Mon Sep 17 00:00:00 2001 From: mpv Date: Tue, 15 Sep 2015 17:38:18 +0300 Subject: [PATCH] Fix for issue #980 --- src/Model/Model_Data.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } -- 2.39.2