From: vsv Date: Mon, 18 May 2015 11:53:24 +0000 (+0300) Subject: Set current feature only for active document X-Git-Tag: V_1.2.0~150 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=cfcf17a42d7accc62a7fc56a65a7f9978925c086;p=modules%2Fshaper.git Set current feature only for active document --- diff --git a/src/PartSet/PartSet_DocumentDataModel.cpp b/src/PartSet/PartSet_DocumentDataModel.cpp index 74df2229e..bf29598a0 100644 --- a/src/PartSet/PartSet_DocumentDataModel.cpp +++ b/src/PartSet/PartSet_DocumentDataModel.cpp @@ -790,6 +790,9 @@ void PartSet_DocumentDataModel::onMouseDoubleClick(const QModelIndex& theIndex) return; QTreeView* aTreeView = dynamic_cast(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;