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:
f03c02c
)
Issue #2958: Full update data tree on create part
author
vsv
<vsv@opencascade.com>
Thu, 22 Aug 2019 14:32:26 +0000
(17:32 +0300)
committer
vsv
<vsv@opencascade.com>
Thu, 22 Aug 2019 14:32:50 +0000
(17:32 +0300)
src/XGUI/XGUI_DataModel.cpp
patch
|
blob
|
history
diff --git
a/src/XGUI/XGUI_DataModel.cpp
b/src/XGUI/XGUI_DataModel.cpp
index 32548038ce2b4ab3cb3be13906c04d5f89a73e8c..1675b41832ef71de13aba205eb44f5fe86edb2ad 100644
(file)
--- a/
src/XGUI/XGUI_DataModel.cpp
+++ b/
src/XGUI/XGUI_DataModel.cpp
@@
-67,6
+67,13
@@
void XGUI_DataModel::processEvent(const std::shared_ptr<Events_Message>& theMess
for (aIt = aObjects.cbegin(); aIt != aObjects.cend(); aIt++) {
if ((*aIt)->isInHistory())
aCreated.append(*aIt);
+ if ((*aIt)->groupName() == ModelAPI_ResultPart::group()) {
+ emit beforeTreeRebuild();
+ myRoot->update();
+ rebuildDataTree();
+ emit treeRebuilt();
+ return;
+ }
}
if (aCreated.length() == 0)
return;