[Qt] delete Qt preferences too when resetting prefs.
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2008 10:36:35 +0000 (12:36 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 17 Oct 2008 10:36:35 +0000 (12:36 +0200)
Close #2126

modules/gui/qt4/dialogs/preferences.cpp

index f8146ee..2d8bab8 100644 (file)
@@ -359,9 +359,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();
     }
 }