X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FEvents%2FEvents_Loop.cpp;h=d2d96de532ceda5a4c43bb051fadad2a3ebb7f21;hb=4d6bb9de0e54f09a9bbacc94a058cb7cd437d535;hp=139e862340007e89ce5dec7723768cb401df18cd;hpb=7ba8e2b57ff8965ae644b538c167b7b301e6e41b;p=modules%2Fshaper.git diff --git a/src/Events/Events_Loop.cpp b/src/Events/Events_Loop.cpp index 139e86234..d2d96de53 100644 --- a/src/Events/Events_Loop.cpp +++ b/src/Events/Events_Loop.cpp @@ -129,13 +129,28 @@ void Events_Loop::flush(const Events_ID& theID) send(aGroup, false); if (!aWasFlushed) - myFlushed.erase(myFlushed.find(theID.myID)); + // TODO: Stabilization fix. Check later. + if(myFlushed.find(theID.myID) != myFlushed.end()) { + myFlushed.erase(myFlushed.find(theID.myID)); + } + } +} + +void Events_Loop::eraseMessages(const Events_ID& theID) +{ + std::map >::iterator aMyGroup = + myGroups.find(theID.eventText()); + if (aMyGroup != myGroups.end()) { + myGroups.erase(aMyGroup); } } -void Events_Loop::activateFlushes(const bool theActivate) + +bool Events_Loop::activateFlushes(const bool theActivate) { + bool isActive = myFlushActive; myFlushActive = theActivate; + return isActive; } void Events_Loop::clear(const Events_ID& theID)