]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for bug PAL11561 ( Salome 3 window is always maximized ).
authormzn <mzn@opencascade.com>
Thu, 16 Feb 2006 14:42:03 +0000 (14:42 +0000)
committermzn <mzn@opencascade.com>
Thu, 16 Feb 2006 14:42:03 +0000 (14:42 +0000)
src/LightApp/LightApp_Application.cxx
src/LightApp/LightApp_Application.h

index 0ebc91d892ecb2355716da54bb1ec59b107fcfc3..c63f918bc0e048362a3f880e24bf922da83293c9 100644 (file)
@@ -181,14 +181,6 @@ myPrefs( 0 )
  */
 LightApp_Application::~LightApp_Application()
 {
-  saveWindowsGeometry();
-
-  if ( resourceMgr() )
-  {
-    if ( desktop() )
-      desktop()->saveGeometry( resourceMgr(), "desktop" );
-    resourceMgr()->save();
-  }
   delete mySelMgr;
 }
 
@@ -1704,6 +1696,19 @@ void LightApp_Application::preferencesChanged( const QString& sec, const QString
   }
 }
 
+/*!Save preferences */
+void LightApp_Application::savePreferences()
+{
+  saveWindowsGeometry();
+  
+  if ( resourceMgr() )
+    {
+      if ( desktop() )
+       desktop()->saveGeometry( resourceMgr(), "desktop" );
+      resourceMgr()->save();
+    }
+}
+
 /*!Update desktop title.*/
 void LightApp_Application::updateDesktopTitle() {
   QString aTitle = applicationName();
index 14d2e4c23cc6cd00ad045c63543588e52377e9a1..6af7ef7676250ac796a9b3e675455401e3d7158f 100644 (file)
@@ -128,6 +128,7 @@ protected:
   LightApp_Preferences*               preferences( const bool ) const;
   virtual void                        createPreferences( LightApp_Preferences* );
   virtual void                        preferencesChanged( const QString&, const QString& );
+  virtual void                        savePreferences();
   virtual void                        updateDesktopTitle();
 
 protected slots: