]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Fix for crash in Object Browser when object was deleted but message not sent
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 27 May 2015 16:03:56 +0000 (19:03 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 27 May 2015 16:03:56 +0000 (19:03 +0300)
src/Model/Model_Document.cpp

index 97cf4101051b576ac5f9e5c58f9636bf95426cc6..8cc427ce8d88564a9450b7eeadc4c072b295cf31 100644 (file)
@@ -707,6 +707,7 @@ void Model_Document::setCurrentFeature(std::shared_ptr<ModelAPI_Feature> 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<ModelAPI_Feature> theCurr
     }
   }
   aLoop->flush(aRedispEvent);
+  aLoop->flush(aDeleteEvent);
 }
 
 void Model_Document::setCurrentFeatureUp()