X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fqt4%2Fcomponents%2Fplaylist%2Fstandardpanel.cpp;h=2cade837cce6fb395e90cecaf3a17bbd8fdd96a2;hb=2531d5144140a1b5ca3b13419c979c53e0c951ab;hp=7241cf1895e62ebff481257b22e59e46bd310276;hpb=6b18cf4cc76a1275bfc9a731f33eea0cdc374cdd;p=vlc diff --git a/modules/gui/qt4/components/playlist/standardpanel.cpp b/modules/gui/qt4/components/playlist/standardpanel.cpp index 7241cf1895..2cade837cc 100644 --- a/modules/gui/qt4/components/playlist/standardpanel.cpp +++ b/modules/gui/qt4/components/playlist/standardpanel.cpp @@ -230,9 +230,6 @@ void StandardPLPanel::setRoot( playlist_item_t *p_item ) QPL_LOCK; assert( p_item ); - playlist_item_t *p_pref_item = playlist_GetPreferredNode( THEPL, p_item ); - if( p_pref_item ) p_item = p_pref_item; - /* needed for popupAdd() */ currentRootId = p_item->i_id; @@ -437,9 +434,16 @@ void StandardPLPanel::browseInto( input_item_t *p_input ) playlist_Lock( THEPL ); playlist_item_t *p_item = playlist_ItemGetByInput( THEPL, p_input ); - assert( p_item != NULL ); + if( !p_item ) + { + playlist_Unlock( THEPL ); + return; + } QModelIndex index = model->index( p_item->i_id, 0 ); + + playlist_Unlock( THEPL ); + if( currentView == iconView ) { iconView->setRootIndex( index ); locationBar->setIndex( index ); @@ -449,7 +453,7 @@ void StandardPLPanel::browseInto( input_item_t *p_input ) last_activated_id = -1; - playlist_Unlock( THEPL ); + } LocationBar::LocationBar( PLModel *m )