From: vsv Date: Wed, 17 Apr 2019 11:40:18 +0000 (+0300) Subject: Improve update of object browser X-Git-Tag: VEDF2019Lot4~154 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=510629b53f53ed3d262e21c145c3ae8d49053c54;p=modules%2Fshaper.git Improve update of object browser --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index 7da65684d..a6aa8cba1 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -68,6 +68,8 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess if ((*aIt)->isInHistory()) aCreated.append(*aIt); } + if (aCreated.length() == 0) + return; QTreeNodesList aNodes = myRoot->objectCreated(aCreated); ModuleBase_ITreeNode* aParent; int aRow = 0;