From 61cd0845b41710ad4e7eae07cc6106904be67b9f Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 27 May 2015 19:03:56 +0300 Subject: [PATCH] Fix for crash in Object Browser when object was deleted but message not sent --- src/Model/Model_Document.cpp | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.39.2