X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fqt4.cpp;h=b8adf662ff06d35ad7d11ef9a83c31673380c790;hb=d727c4590f83751a2f28fcdfd8af3886ebeb45d8;hp=7f9b106a708f026935093daf3c637f72fdeeb29e;hpb=473924674c85c5f5c11a5c2e0564ad6cc8f7d566;p=vlc diff --git a/modules/gui/qt4/qt4.cpp b/modules/gui/qt4/qt4.cpp index 7f9b106a70..b8adf662ff 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 ) @@ -426,6 +433,9 @@ static void Init( intf_thread_t *p_intf ) /* Destroy the MainInputManager */ MainInputManager::killInstance(); + /* Delete the configuration */ + delete p_intf->p_sys->mainSettings; + /* Delete the application */ delete app;