]> git.sesse.net Git - vlc/commitdiff
* skins2: do not save the config when changing the skin
authorOlivier Teulière <ipkiss@videolan.org>
Sat, 3 Apr 2004 18:47:12 +0000 (18:47 +0000)
committerOlivier Teulière <ipkiss@videolan.org>
Sat, 3 Apr 2004 18:47:12 +0000 (18:47 +0000)
modules/gui/skins2/src/skin_main.cpp
modules/gui/skins2/src/theme.cpp

index 478b61b50aa41e24cf5bacfefca46e800f66bfb6..f1f73748a806221a2182f4bcf38253f030a0373e 100644 (file)
@@ -2,7 +2,7 @@
  * skin_main.cpp
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: skin_main.cpp,v 1.10 2004/03/01 19:58:16 gbazin Exp $
+ * $Id$
  *
  * Authors: Cyril Deguet     <asmax@via.ecp.fr>
  *          Olivier Teulière <ipkiss@via.ecp.fr>
@@ -207,9 +207,10 @@ static void Run( intf_thread_t *p_intf )
     // Enter the main event loop
     loop->run();
 
-    // Delete the theme
+    // Delete the theme and save the configuration of the windows
     if( p_intf->p_sys->p_theme )
     {
+        p_intf->p_sys->p_theme->saveConfig();
         delete p_intf->p_sys->p_theme;
         p_intf->p_sys->p_theme = NULL;
     }
index 8ca022a68fdce86f9f5e78e6f9f7e087f9bd48f5..b91f6c0403026012c12f944e950077182a81ef1a 100755 (executable)
@@ -27,8 +27,6 @@
 
 Theme::~Theme()
 {
-    saveConfig();
-
     // Be sure things are destroyed in the right order (XXX check)
     m_layouts.clear();
     m_controls.clear();