From 6c7ef4734f78a6beb0d1078f860587e21587cb23 Mon Sep 17 00:00:00 2001 From: vsv Date: Mon, 9 Nov 2015 12:52:34 +0300 Subject: [PATCH] Disable selection of objects in non-active document out of history --- src/XGUI/XGUI_DataModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.2