From ae31231fac77245c3bdc18999ecaf9d2a8cd9eac Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 2 Apr 2020 14:06:58 +0300 Subject: [PATCH] bos #18834 [CEA] Restore object browser state when switching from light module to CORBA module --- src/LightApp/LightApp_Application.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 10cca2c57..731206945 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -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(); -- 2.39.2