]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/standardpanel.cpp
* Allow service discoveries to state whether they prefer being displayed as tree
[vlc] / modules / gui / qt4 / components / playlist / standardpanel.cpp
index 8f306ebb4ce4b0b97d4cdb6af75d1007b851b569..1a9724206ed8e34e49d5f0c4dd56f2935e67ac8a 100644 (file)
@@ -132,6 +132,8 @@ void StandardPLPanel::setRoot( int i_root_id )
 {
     playlist_item_t *p_item = playlist_ItemGetById( THEPL, i_root_id );
     assert( p_item );
+    p_item = playlist_GetPreferredNode( THEPL, p_item );
+    assert( p_item );
     model->rebuild( p_item );
 }