From 83a0895d3ed5c0bade77194d01b4cf7d92222c25 Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 18 Oct 2018 11:50:21 +0300 Subject: [PATCH] 0023170: [CEA 1558] When a file is loaded in python, panels Information, Display and View are empty --- src/PVGUI/PVGUI_Module.cxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/PVGUI/PVGUI_Module.cxx b/src/PVGUI/PVGUI_Module.cxx index 342af676..a97901b7 100644 --- a/src/PVGUI/PVGUI_Module.cxx +++ b/src/PVGUI/PVGUI_Module.cxx @@ -124,6 +124,7 @@ #include #include #include +#include #if PY_VERSION_HEX < 0x03050000 static char* @@ -629,7 +630,13 @@ bool PVGUI_Module::activateModule( SUIT_Study* study ) } if ( myRecentMenuId != -1 ) menuMgr()->show(myRecentMenuId); - + + // VSR 18/10/2018 - 0023170: Workaround to re-select current index after module activation + QItemSelectionModel* selection_model = myGuiElements->getPipelineBrowserWidget()->getSelectionModel(); + QModelIndex idx = selection_model->currentIndex(); + selection_model->clearCurrentIndex(); + selection_model->setCurrentIndex(idx, QItemSelectionModel::ClearAndSelect); + return isDone; } -- 2.39.2