From 8d6c9d3695d4adf44b3465908fca687f40e1ce16 Mon Sep 17 00:00:00 2001 From: vsr Date: Tue, 23 Dec 2014 19:09:46 +0300 Subject: [PATCH] Update Object browser properly after switching back from the module that does not use (and does not expose) Object browser --- src/LightApp/LightApp_Application.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.39.2