From: vsv Date: Mon, 30 May 2016 09:37:56 +0000 (+0300) Subject: Issue #1514: Disable all items in non-active part document X-Git-Tag: V_2.3.1~32 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ec2d3b43badaeda69bc1dc46855e3542f9506eef;p=modules%2Fshaper.git Issue #1514: Disable all items in non-active part document --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index d1ccd46ff..44030e86a 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -727,6 +727,10 @@ Qt::ItemFlags XGUI_DataModel::flags(const QModelIndex& theIndex) const // An object if (aObj->isDisabled()) return theIndex.column() == 1? Qt::ItemIsSelectable : aNullFlag; + + if (aSession->moduleDocument() != aObj->document()) + if (aActiveDoc != aObj->document()) + return theIndex.column() == 1? Qt::ItemIsSelectable : aNullFlag; bool isCompositeSub = false; // An object which is sub-object of a composite object can not be accessible in column 1