From: vsr Date: Thu, 18 Oct 2018 08:50:21 +0000 (+0300) Subject: 0023170: [CEA 1558] When a file is loaded in python, panels Information, Display... X-Git-Tag: V9_2_0a2~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=83a0895d3ed5c0bade77194d01b4cf7d92222c25;p=modules%2Fparavis.git 0023170: [CEA 1558] When a file is loaded in python, panels Information, Display and View are empty --- 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; }