[vlc-devel] commit: [Qt] delete Qt preferences too when resetting prefs. ( Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Oct 17 12:39:20 CEST 2008


vlc | branch: 0.9-bugfix | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 17 12:36:35 2008 +0200| [2c7ac6c8f2eb4bdd31839023986249319a18d40f] | committer: Jean-Baptiste Kempf 

[Qt] delete Qt preferences too when resetting prefs.

Close #2126
(cherry picked from commit ec8639f0040b867af9afcc2581d67b1eddf676b7)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2c7ac6c8f2eb4bdd31839023986249319a18d40f
---

 modules/gui/qt4/dialogs/preferences.cpp |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/dialogs/preferences.cpp b/modules/gui/qt4/dialogs/preferences.cpp
index f00fec2..a8e436f 100644
--- a/modules/gui/qt4/dialogs/preferences.cpp
+++ b/modules/gui/qt4/dialogs/preferences.cpp
@@ -360,9 +360,10 @@ void PrefsDialog::reset()
     {
         config_ResetAll( p_intf );
         config_SaveConfigFile( p_intf, NULL );
+        getSettings()->clear();
 
-        instance = NULL;
         close();
+        instance = NULL;
         PrefsDialog::getInstance( p_intf )->show();
     }
 }




More information about the vlc-devel mailing list