X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Update.cpp;h=51eba966c182977e5787340582512cc134b426e3;hb=f7a976b98d8cadadcb54a61e42ddb66e00759689;hp=2c32f0467ca08193e9a33f916d8e0796e3e42522;hpb=509293dabae95f38abae3b8845cc7819736395a0;p=modules%2Fshaper.git diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 2c32f0467..51eba966c 100644 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -67,8 +67,11 @@ void Model_Update::processEvent(const std::shared_ptr& theMessag static const Events_ID kOpStartEvent = aLoop->eventByName("StartOperation"); bool isAutomaticChanged = false; if (theMessage->eventID() == kChangedEvent) { // automatic and manual rebuild flag is changed - isAutomatic = - Config_PropManager::findProp("Model update", "automatic_rebuild")->value() == "true"; + bool aPropVal = + Config_PropManager::findProp("Model update", "automatic_rebuild")->value() == "true"; + if (aPropVal == isAutomatic) + return;// nothing to + isAutomatic = aPropVal; } else if (theMessage->eventID() == kRebuildEvent) { // the rebuild command if (isAutomatic == false) { isAutomaticChanged = true;