From: vsv Date: Wed, 11 Nov 2015 12:28:30 +0000 (+0300) Subject: Issue #1081: Flash events before remove part document X-Git-Tag: V_2.0.0_alfa2~35 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=50b9ae61529a11da689f9bbe6d17740687d6e142;p=modules%2Fshaper.git Issue #1081: Flash events before remove part document --- diff --git a/src/Model/Model_ResultPart.cpp b/src/Model/Model_ResultPart.cpp index a067b7224..b38c0bb09 100644 --- a/src/Model/Model_ResultPart.cpp +++ b/src/Model/Model_ResultPart.cpp @@ -119,6 +119,11 @@ bool Model_ResultPart::setDisabled(std::shared_ptr theThis, updateShape(); shape(); aDoc->setCurrentFeature(FeaturePtr(), false); + // in order to update OB sub-elements of document before the document closing + Events_Loop* aLoop = Events_Loop::loop(); + aLoop->flush(Events_Loop::eventByName(EVENT_OBJECT_CREATED)); + aLoop->flush(Events_Loop::eventByName(EVENT_OBJECT_UPDATED)); + aLoop->flush(Events_Loop::eventByName(EVENT_OBJECT_DELETED)); } } }