X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fplaylist%2Fstandardpanel.cpp;h=f268d645a8d6730be1f9d514cd697948a44acc3a;hb=99f299c6c6c0f460edd6bbae5f4a29a991c6f9dc;hp=b8aa3000178a08afe03d582951ff308c0adc9342;hpb=6a2bec6553f6802802e51768a76d7f4f0616a30e;p=vlc diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index b8aa300017..f268d645a8 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.cpp +++ b/modules/gui/qt4/components/playlist/standardpanel.cpp @@ -315,11 +315,14 @@ void StandardPLPanel::doPopup( QModelIndex index, QPoint point ) /* This activated by the selector selection */ void StandardPLPanel::setRoot( int i_root_id ) { + QPL_LOCK; playlist_item_t *p_item = playlist_ItemGetById( THEPL, i_root_id, true ); assert( p_item ); p_item = playlist_GetPreferredNode( THEPL, p_item ); assert( p_item ); + QPL_UNLOCK; + model->rebuild( p_item ); }