]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
bos #18834 [CEA] Restore object browser state when switching from light module to...
authorvsr <vsr@opencascade.com>
Thu, 2 Apr 2020 11:06:58 +0000 (14:06 +0300)
committervsr <vsr@opencascade.com>
Thu, 2 Apr 2020 11:06:58 +0000 (14:06 +0300)
src/LightApp/LightApp_Application.cxx

index 10cca2c578fa0242da27f6c9101701a0d58a0821..7312069457215d3e81b43fc3835938a7aeef628a 100644 (file)
@@ -4115,10 +4115,14 @@ void LightApp_Application::updateWindows()
   for ( WinMap::ConstIterator it = myWin.begin(); it != myWin.end(); ++it )
   {
     QWidget* wid = it.value();
+    if ( !wid )
+      continue;
     if ( winMap.contains( it.key() ) )
       wid->setVisible( true );
-    else
+    else if ( !activeStudy() )
       delete wid;
+    else
+      wid->setVisible( false );
   }
 
   loadDockWindowsState();