From 2ddd5aafa53a9ac571182eacc63434cfa4433fa3 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 14 Dec 2016 12:56:48 +0300 Subject: [PATCH] Issue #1921: Ignore non valid index on document change. --- src/PartSet/PartSet_Module.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.2