From: stv Date: Tue, 31 May 2005 09:20:10 +0000 (+0000) Subject: Show the desktop is maximized at first start X-Git-Tag: T3_0_0_a1~66 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f022362547289ec34319131475f024b1a961c332;p=modules%2Fgui.git Show the desktop is maximized at first start --- 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 @@ +
+ + + + + +