]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Update Object browser properly after switching back from the module that does not... V7_5_1b1
authorvsr <vsr@opencascade.com>
Tue, 23 Dec 2014 16:09:46 +0000 (19:09 +0300)
committervsr <vsr@opencascade.com>
Tue, 23 Dec 2014 16:09:46 +0000 (19:09 +0300)
src/LightApp/LightApp_Application.cxx

index 56b3f88527f7a8b1aca507791d8b4e9eef0e14c3..bb0e4a26f9d05579d6df7202a1d2efee93eea2e2 100644 (file)
@@ -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;
 }