Commit 1200a79d authored by Olivier Teulière's avatar Olivier Teulière

* skins2: do not save the config when changing the skin

parent 6bf0c3d1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* skin_main.cpp * skin_main.cpp
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * 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> * Authors: Cyril Deguet <asmax@via.ecp.fr>
* Olivier Teulire <ipkiss@via.ecp.fr> * Olivier Teulire <ipkiss@via.ecp.fr>
...@@ -207,9 +207,10 @@ static void Run( intf_thread_t *p_intf ) ...@@ -207,9 +207,10 @@ static void Run( intf_thread_t *p_intf )
// Enter the main event loop // Enter the main event loop
loop->run(); loop->run();
// Delete the theme // Delete the theme and save the configuration of the windows
if( p_intf->p_sys->p_theme ) if( p_intf->p_sys->p_theme )
{ {
p_intf->p_sys->p_theme->saveConfig();
delete p_intf->p_sys->p_theme; delete p_intf->p_sys->p_theme;
p_intf->p_sys->p_theme = NULL; p_intf->p_sys->p_theme = NULL;
} }
......
...@@ -27,8 +27,6 @@ ...@@ -27,8 +27,6 @@
Theme::~Theme() Theme::~Theme()
{ {
saveConfig();
// Be sure things are destroyed in the right order (XXX check) // Be sure things are destroyed in the right order (XXX check)
m_layouts.clear(); m_layouts.clear();
m_controls.clear(); m_controls.clear();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment