Commit ec9c958a authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Qt: ensure currentItem() to be not NULL in PLSelector

Close #5764
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 9bf74a1e)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 5a7868fa
...@@ -188,6 +188,7 @@ void PLSelector::createItems() ...@@ -188,6 +188,7 @@ void PLSelector::createItems()
PLSelItem *pl = putPLData( addItem( PL_ITEM_TYPE, N_("Playlist"), true ), PLSelItem *pl = putPLData( addItem( PL_ITEM_TYPE, N_("Playlist"), true ),
THEPL->p_playing ); THEPL->p_playing );
pl->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_PL ) ); pl->treeItem()->setData( 0, SPECIAL_ROLE, QVariant( IS_PL ) );
setCurrentItem( pl->treeItem() );
/* ML */ /* ML */
PLSelItem *ml = putPLData( addItem( PL_ITEM_TYPE, N_("Media Library"), true ), PLSelItem *ml = putPLData( addItem( PL_ITEM_TYPE, N_("Media Library"), true ),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment