]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Show the desktop is maximized at first start
authorstv <stv@opencascade.com>
Tue, 31 May 2005 09:20:10 +0000 (09:20 +0000)
committerstv <stv@opencascade.com>
Tue, 31 May 2005 09:20:10 +0000 (09:20 +0000)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/resources/SalomeApp.xml

index 0593e108507560dde6be8aa2fdbe99e35eaad4ad..18310dead9bfd289584941c2e41650dcacc62c7b 100644 (file)
@@ -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();
 }
index 16b65befe4057253330b057c7d91c2862cc20e9b..eddcdbcbad5ec788f764dee56a940d9e972d59f6 100644 (file)
@@ -1,4 +1,11 @@
 <document>
+  <section name="desktop" >
+    <parameter name="state"  value="max"/>
+    <parameter name="pos_x"  value="100"/>
+    <parameter name="pos_y"  value="050"/>
+    <parameter name="width"  value="640"/>
+    <parameter name="height" value="480"/>
+  </section>
   <section name="launch">
     <parameter name="gui"        value="yes"/>
     <parameter name="file"       value="no"/>