Salome HOME
projects
/
modules
/
shaper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3a79bb
)
Issue #1081: Flash events before remove part document
author
vsv
<vitaly.smetannikov@opencascade.com>
Wed, 11 Nov 2015 12:28:30 +0000
(15:28 +0300)
committer
vsv
<vitaly.smetannikov@opencascade.com>
Wed, 11 Nov 2015 12:28:30 +0000
(15:28 +0300)
src/Model/Model_ResultPart.cpp
patch
|
blob
|
history
diff --git
a/src/Model/Model_ResultPart.cpp
b/src/Model/Model_ResultPart.cpp
index a067b7224a24ad2676817dc585268538adc51ff8..b38c0bb092d812bb38f8dbdea66a886dc8c8621e 100644
(file)
--- a/
src/Model/Model_ResultPart.cpp
+++ b/
src/Model/Model_ResultPart.cpp
@@
-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));
}
}
}