From: vsr Date: Tue, 23 Dec 2014 16:09:46 +0000 (+0300) Subject: Update Object browser properly after switching back from the module that does not... X-Git-Tag: V7_5_1b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=01c6c93d2559d6b558a20162d377554ee4a52337;p=modules%2Fgui.git Update Object browser properly after switching back from the module that does not use (and does not expose) Object browser --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 56b3f8852..bb0e4a26f 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -497,6 +497,10 @@ bool LightApp_Application::activateModule( const QString& modName ) updateWindows(); updateViewManagers(); + if ( activeStudy() && activeStudy()->root() && objectBrowser() && objectBrowser()->root() != activeStudy()->root() ) { + objectBrowser()->setRoot( activeStudy()->root() ); + updateObjectBrowser( true ); + } return true; }