From: mpv Date: Mon, 23 May 2016 13:05:37 +0000 (+0300) Subject: Fix for the issue #1501 X-Git-Tag: V_2.3.1~74 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=371223810c3a838d1096490b47365a788ee51b72;p=modules%2Fshaper.git Fix for the issue #1501 --- diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index 4df33df2a..000c377d4 100755 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -311,10 +311,10 @@ void Model_Update::processFeatures(const bool theFlushRedisplay) } myIsProcessed = false; - // flush updates just before "myModification" increment: to distinguish - // updates by "execute" produced by this updater and other updates, coming outside, - // which are really important for "processEvent" of this updater + // to update the object browser if something is updated/created during executions static Events_Loop* aLoop = Events_Loop::loop(); + static const Events_ID kCreatedEvent= aLoop->eventByName(EVENT_OBJECT_CREATED); + aLoop->flush(kCreatedEvent); static const Events_ID kUpdatedEvent = aLoop->eventByName(EVENT_OBJECT_UPDATED); aLoop->flush(kUpdatedEvent);