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: V_2.7.0~351^2~55^2~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2ddd5aafa53a9ac571182eacc63434cfa4433fa3;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 4baa040de..fc24193b8 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -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