[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:37:12 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct 17 12:36:35 2008 +0200| [ec8639f0040b867af9afcc2581d67b1eddf676b7] | committer: Jean-Baptiste Kempf
[Qt] delete Qt preferences too when resetting prefs.
Close #2126
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ec8639f0040b867af9afcc2581d67b1eddf676b7
---
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 f8146ee..2d8bab8 100644
--- a/modules/gui/qt4/dialogs/preferences.cpp
+++ b/modules/gui/qt4/dialogs/preferences.cpp
@@ -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();
}
}
More information about the vlc-devel
mailing list