]> git.sesse.net Git - vlc/commitdiff
Don't clutter REGISTRY on windows...
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 Aug 2008 20:27:54 +0000 (13:27 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 1 Aug 2008 20:28:59 +0000 (13:28 -0700)
Using the registry when we can avoid it is a wrong idea, IMHO.
Easier to delete when you delete %appdata%/vlc

modules/gui/qt4/qt4.cpp

index 76e642efa3fd54d3880fc6fc59a6c91cb7e5296d..b8adf662ff06d35ad7d11ef9a83c31673380c790 100644 (file)
@@ -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 )