]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for the issue #1501
authormpv <mpv@opencascade.com>
Mon, 23 May 2016 13:05:37 +0000 (16:05 +0300)
committermpv <mpv@opencascade.com>
Mon, 23 May 2016 13:05:37 +0000 (16:05 +0300)
src/Model/Model_Update.cpp

index 4df33df2a1f59ea51a354a4bc36692ea457b2608..000c377d43b212704ce22db6e3f24920cf2ea84f 100755 (executable)
@@ -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);