]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
savePreferences(); method is called after study->closeDocument(); method call because...
authorsln <sln@opencascade.com>
Tue, 20 Nov 2007 10:55:29 +0000 (10:55 +0000)
committersln <sln@opencascade.com>
Tue, 20 Nov 2007 10:55:29 +0000 (10:55 +0000)
src/STD/STD_Application.cxx

index 6c256631950cdafc44567b4c0a5630915954d184..ae864f3e05c2ea983dc46bcaa54ca9da4032ab78 100755 (executable)
@@ -92,8 +92,8 @@ void STD_Application::start()
 */
 void STD_Application::closeApplication()
 {
-  if ( desktop() )
-    savePreferences();
+  /*if ( desktop() )
+    savePreferences();*/
   SUIT_Study* study = activeStudy();
 
   if ( study ){
@@ -103,6 +103,9 @@ void STD_Application::closeApplication()
     delete study;
   }
 
+  if ( desktop() )
+    savePreferences();
+
   setDesktop( 0 );
   
   SUIT_Application::closeApplication();