From 967610e7990a94d1cd1b6d75b275b8cdbda6d147 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 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 -- 2.39.2