]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1081: Flash events before remove part document
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 11 Nov 2015 12:28:30 +0000 (15:28 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 11 Nov 2015 12:28:30 +0000 (15:28 +0300)
src/Model/Model_ResultPart.cpp

index a067b7224a24ad2676817dc585268538adc51ff8..b38c0bb092d812bb38f8dbdea66a886dc8c8621e 100644 (file)
@@ -119,6 +119,11 @@ bool Model_ResultPart::setDisabled(std::shared_ptr<ModelAPI_Result> 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));
         }
       }
     }