X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fplaylist%2Fplaylist_model.cpp;h=e802ecff44cad17626f123fe0addcfcf3bef990d;hb=473924674c85c5f5c11a5c2e0564ad6cc8f7d566;hp=74c1b50c8f6f9a4cd6e49a3b238bf55986ff7c1c;hpb=8462c96dd88417db77c726c8ed290ef7f745f873;p=vlc diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp index 74c1b50c8f..e802ecff44 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.cpp +++ b/modules/gui/qt4/components/playlist/playlist_model.cpp @@ -98,8 +98,7 @@ PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */ PLModel::~PLModel() { - QSettings settings( "vlc", "vlc-qt-interface" ); - settings.setValue( "qt-pl-showflags", rootItem->i_showflags ); + getSettings()->setValue( "qt-pl-showflags", rootItem->i_showflags ); delCallbacks(); delete rootItem; } @@ -591,7 +590,7 @@ void PLModel::rebuild( playlist_item_t *p_root ) if( p_root ) { delete rootItem; - rootItem = new PLItem( p_root, NULL, this ); + rootItem = new PLItem( p_root, getSettings(), this ); } assert( rootItem ); /* Recreate from root */