]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1921: Ignore non valid index on document change.
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 14 Dec 2016 09:56:48 +0000 (12:56 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 14 Dec 2016 09:56:48 +0000 (12:56 +0300)
src/PartSet/PartSet_Module.cpp

index 667766244b64b5fcb22cff1c07eaeddbba26362f..348e8a4cb374a3ed3b9489bef5cb0f7aa907568a 100755 (executable)
@@ -1291,7 +1291,8 @@ void PartSet_Module::onTreeViewDoubleClick(const QModelIndex& theIndex)
     return;
   SessionPtr aMgr = ModelAPI_Session::get();
   if (!theIndex.isValid()) {
-    aMgr->setActiveDocument(aMgr->moduleDocument());
+    // It seems that this code is obsolete
+    //aMgr->setActiveDocument(aMgr->moduleDocument());
     return;
   }
   if (theIndex.column() != 0) // Use only first column