]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Set current feature only for active document
authorvsv <vitaly.smetannikov@opencascade.com>
Mon, 18 May 2015 11:53:24 +0000 (14:53 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Mon, 18 May 2015 11:53:24 +0000 (14:53 +0300)
src/PartSet/PartSet_DocumentDataModel.cpp

index 74df2229e96f3af191654653bf4d5c74e33c91dd..bf29598a0b2c9d1a11606220617323d6eded2039 100644 (file)
@@ -790,6 +790,9 @@ void PartSet_DocumentDataModel::onMouseDoubleClick(const QModelIndex& theIndex)
     return;
   QTreeView* aTreeView = dynamic_cast<QTreeView*>(sender());
   if ((theIndex.internalId() >= PartsFolder) && (theIndex.internalId() <= PartResult)) {
+    if (myActivePartId != -1)
+      // It means that the root document is not active
+      return;
     QModelIndex aNewIndex;
     if (theIndex.internalId() == HistoryNode) 
       aNewIndex = theIndex;