From: vsv Date: Wed, 27 May 2015 16:03:56 +0000 (+0300) Subject: Fix for crash in Object Browser when object was deleted but message not sent X-Git-Tag: V_1.2.0~45 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=61cd0845b41710ad4e7eae07cc6106904be67b9f;p=modules%2Fshaper.git Fix for crash in Object Browser when object was deleted but message not sent --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 97cf41010..8cc427ce8 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -707,6 +707,7 @@ void Model_Document::setCurrentFeature(std::shared_ptr theCurr // make all features after this feature disabled in reversed order (to remove results without deps) static Events_Loop* aLoop = Events_Loop::loop(); static Events_ID aRedispEvent = aLoop->eventByName(EVENT_OBJECT_TO_REDISPLAY); + static Events_ID aDeleteEvent = aLoop->eventByName(EVENT_OBJECT_DELETED); bool aPassed = false; // flag that the current object is already passed in cycle FeaturePtr anIter = myObjs->lastFeature(); @@ -728,6 +729,7 @@ void Model_Document::setCurrentFeature(std::shared_ptr theCurr } } aLoop->flush(aRedispEvent); + aLoop->flush(aDeleteEvent); } void Model_Document::setCurrentFeatureUp()