From f022362547289ec34319131475f024b1a961c332 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 31 May 2005 09:20:10 +0000 Subject: [PATCH] Show the desktop is maximized at first start --- src/SalomeApp/SalomeApp_Application.cxx | 4 ++-- src/SalomeApp/resources/SalomeApp.xml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 0593e1085..18310dead 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -546,7 +546,9 @@ void SalomeApp_Application::removeWindow( const int flag, const int studyId ) sId = activeStudy()->id(); } + QWidget* wid = myWindows[flag]->widget( sId ); myWindows[flag]->remove( sId ); + delete wid; setWindowShown( flag, !myWindows[flag]->isEmpty() ); } @@ -700,8 +702,6 @@ void SalomeApp_Application::onStudyClosed( SUIT_Study* ) emit studyClosed(); activateModule( "" ); - if ( objectBrowser() != 0 ) - objectBrowser()->setRootObject( 0 ); saveWindowsGeometry(); } diff --git a/src/SalomeApp/resources/SalomeApp.xml b/src/SalomeApp/resources/SalomeApp.xml index 16b65befe..eddcdbcba 100644 --- a/src/SalomeApp/resources/SalomeApp.xml +++ b/src/SalomeApp/resources/SalomeApp.xml @@ -1,4 +1,11 @@ +
+ + + + + +
-- 2.39.2