[vlc-devel] commit: Don't clutter REGISTRY on windows... (Jean-Baptiste Kempf )

git version control git at videolan.org
Fri Aug 1 22:26:37 CEST 2008


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug  1 13:27:54 2008 -0700| [d727c4590f83751a2f28fcdfd8af3886ebeb45d8] | committer: Jean-Baptiste Kempf 

Don't clutter REGISTRY on windows...

Using the registry when we can avoid it is a wrong idea, IMHO.
Easier to delete when you delete %appdata%/vlc

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

 modules/gui/qt4/qt4.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp
index 76e642e..b8adf66 100644
--- a/modules/gui/qt4/qt4.cpp
+++ b/modules/gui/qt4/qt4.cpp
@@ -324,7 +324,14 @@ static void Init( intf_thread_t *p_intf )
     QApplication *app = new QApplication( argc, argv , true );
     p_intf->p_sys->p_app = app;
 
-    p_intf->p_sys->mainSettings = new QSettings( "vlc", "vlc-qt-interface" );
+    p_intf->p_sys->mainSettings = new QSettings(
+#ifdef WIN32
+            QSettings::IniFormat,
+#else
+            QSettings::NativeFormat,
+#endif
+            QSettings::UserScope, "vlc", "vlc-qt-interface" );
+
     /* Icon setting
        FIXME: use a bigger icon ? */
     if( QDate::currentDate().dayOfYear() >= 354 )




More information about the vlc-devel mailing list