From: azv Date: Thu, 30 Mar 2017 13:59:26 +0000 (+0300) Subject: Fix passing events during the Undo operation (issues #2062, #2070) X-Git-Tag: V_2.7.0~124 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a8fb302752a1d9f4af225d284dd1e3e3ac5668c9;p=modules%2Fshaper.git Fix passing events during the Undo operation (issues #2062, #2070) --- diff --git a/src/Events/Events_Loop.cpp b/src/Events/Events_Loop.cpp index 1bbe62aaa..0d380b76b 100644 --- a/src/Events/Events_Loop.cpp +++ b/src/Events/Events_Loop.cpp @@ -207,7 +207,7 @@ void Events_Loop::flush(const Events_ID& theID) } } } - if (hasEventsToFlush && myGroups.empty()) { + if (hasEventsToFlush && myGroups.empty() && myFlushed.empty()) { // no more messages left in the queue, so, finalize the sketch processing static Events_ID anID = Events_Loop::eventByName("SketchPrepared"); std::shared_ptr aMsg(new Events_Message(anID, this)); diff --git a/src/Model/Model_Update.cpp b/src/Model/Model_Update.cpp index f1e23dcf8..2c18d72bc 100755 --- a/src/Model/Model_Update.cpp +++ b/src/Model/Model_Update.cpp @@ -500,10 +500,6 @@ bool Model_Update::processFeature(FeaturePtr theFeature) (*aRIter)->attributeChanged("External"); } } - // send event that sketch is prepared to be recomputed - static Events_ID anID = Events_Loop::eventByName("SketchPrepared"); - std::shared_ptr aMsg(new Events_Message(anID, this)); - Events_Loop::loop()->send(aMsg); } if (!aIsModified) { // no modification is needed