From 4bced7eabb2e3de30d3b163c82eba3f62b37f11d Mon Sep 17 00:00:00 2001 From: asl Date: Fri, 28 Apr 2006 06:55:58 +0000 Subject: [PATCH] ASL: debug --- src/LightApp/LightApp_Application.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index eaa1915b3..38ecb298e 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -317,7 +317,8 @@ bool LightApp_Application::activateModule( const QString& modName ) putInfo( tr( "ACTIVATING_MODULE" ).arg( modName ) ); - saveWindowsGeometry(); + if( !modName.isEmpty() ) + saveWindowsGeometry(); bool status = CAM_Application::activateModule( modName ); @@ -1451,6 +1452,7 @@ void LightApp_Application::onMRUActivated( QString aName ) /*!Remove all windows from study.*/ void LightApp_Application::beforeCloseDoc( SUIT_Study* s ) { + saveWindowsGeometry(); CAM_Application::beforeCloseDoc( s ); for ( WindowMap::ConstIterator itr = myWindows.begin(); s && itr != myWindows.end(); ++itr ) -- 2.39.2