From: vsv Date: Wed, 14 Dec 2016 09:56:48 +0000 (+0300) Subject: Issue #1921: Ignore non valid index on document change. X-Git-Tag: before_porting_8.2.0~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=967610e7990a94d1cd1b6d75b275b8cdbda6d147;p=modules%2Fshaper.git Issue #1921: Ignore non valid index on document change. --- diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 667766244..348e8a4cb 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -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