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)
committernds <nds@opencascade.com>
Thu, 15 Dec 2016 11:36:24 +0000 (14:36 +0300)
src/PartSet/PartSet_Module.cpp

index 4baa040de7218cc423e697c323d7fccc03aa6533..fc24193b82ff0761aa562a19673e74f7089ed40d 100755 (executable)
@@ -1292,7 +1292,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