From: vsv Date: Mon, 24 Aug 2015 11:39:11 +0000 (+0300) Subject: Do not process objects in data model which must not to be shown in object browser X-Git-Tag: V_1.4.0_beta4~280 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=816672e21b195db53d6f8a2e9914bfc400cd49de;p=modules%2Fshaper.git Do not process objects in data model which must not to be shown in object browser --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index d5c7805e0..1d422355b 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -82,6 +82,10 @@ void XGUI_DataModel::processEvent(const std::shared_ptr& theMess std::string aObjType; for (aIt = aObjects.begin(); aIt != aObjects.end(); ++aIt) { ObjectPtr aObject = (*aIt); + // We do not show objects which not has to be shown in object browser + if (!aObject->isInHistory()) + continue; + aObjType = aObject->groupName(); DocumentPtr aDoc = aObject->document(); if (aDoc == aRootDoc) {