From 6bc10d2413e17c39cb59ec1a040a044b610bceef Mon Sep 17 00:00:00 2001 From: asv Date: Mon, 13 Mar 2006 09:52:25 +0000 Subject: [PATCH] Bug when ObjBrowser and Python console were NOT closed after closing of study is fixed. --- src/LightApp/LightApp_Application.cxx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index ad9682a94..051b1c314 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1905,17 +1905,18 @@ void LightApp_Application::currentViewManagers( QStringList& lst ) const /*!Update windows.*/ void LightApp_Application::updateWindows() { - if ( !activeStudy() ) - return; - QMap winMap; currentWindows( winMap ); - for ( QMap::ConstIterator it = winMap.begin(); it != winMap.end(); ++it ) - getWindow( it.key() ); + if ( activeStudy() ) { + for ( QMap::ConstIterator it = winMap.begin(); it != winMap.end(); ++it ) + getWindow( it.key() ); - loadWindowsGeometry(); + loadWindowsGeometry(); + } + // setWindowShown should be done even if no study is active (open). in this case all open windows + // will be hidden, which is neccessary in this case. for ( WindowMap::ConstIterator itr = myWindows.begin(); itr != myWindows.end(); ++itr ) setWindowShown( itr.key(), !itr.data()->isEmpty() && winMap.contains( itr.key() ) ); } -- 2.39.2