From: vsv Date: Mon, 9 Nov 2015 09:52:34 +0000 (+0300) Subject: Disable selection of objects in non-active document out of history X-Git-Tag: V_2.0.0_alfa1~8 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6c7ef4734f78a6beb0d1078f860587e21587cb23;p=modules%2Fshaper.git Disable selection of objects in non-active document out of history --- diff --git a/src/XGUI/XGUI_DataModel.cpp b/src/XGUI/XGUI_DataModel.cpp index afb0aba04..009da57c6 100644 --- a/src/XGUI/XGUI_DataModel.cpp +++ b/src/XGUI/XGUI_DataModel.cpp @@ -735,7 +735,7 @@ Qt::ItemFlags XGUI_DataModel::flags(const QModelIndex& theIndex) const } else if (aDoc) { // A folder under sub-document if (aActiveDoc.get() != aDoc) - return aDefaultFlag; + return aNullFlag; } return aEditingFlag; }