From: asv Date: Mon, 13 Mar 2006 09:52:25 +0000 (+0000) Subject: Bug when ObjBrowser and Python console were NOT closed after closing of study is... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6bc10d2413e17c39cb59ec1a040a044b610bceef;p=modules%2Fgui.git Bug when ObjBrowser and Python console were NOT closed after closing of study is fixed. --- 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() ) ); }