]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Disable selection of objects in non-active document out of history
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 9 Nov 2015 09:52:34 +0000 (12:52 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 9 Nov 2015 09:52:47 +0000 (12:52 +0300)
src/XGUI/XGUI_DataModel.cpp

index afb0aba04ebb6ce375f7c87fe9ceb85e4d8a4b61..009da57c60a8bd076f6b23b7bd6e2feb63d10503 100644 (file)
@@ -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;
 }