From: Fabio Ritrovato Date: Fri, 18 Jul 2008 14:52:23 +0000 (+0200) Subject: Skins2: use the right id when creating the tree Resolve some bugs related to the... X-Git-Tag: 0.9.0~461 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=77e50bbee08bb62e86b1dfc9e7a22debecf08503;p=vlc Skins2: use the right id when creating the tree Resolve some bugs related to the playlist in Skins2, like adding items in the wrong place, and services discovery not showing. Signed-off-by: Jean-Baptiste Kempf --- diff --git a/modules/gui/skins2/vars/playtree.cpp b/modules/gui/skins2/vars/playtree.cpp index 0033e1ce8e..7a79025d88 100644 --- a/modules/gui/skins2/vars/playtree.cpp +++ b/modules/gui/skins2/vars/playtree.cpp @@ -198,7 +198,7 @@ void Playtree::buildNode( playlist_item_t *pNode, VarTree &rTree ) { UString *pName = new UString( getIntf(), pNode->pp_children[i]->p_input->psz_name ); - rTree.add( pNode->pp_children[i]->p_input->i_id, UStringPtr( pName ), + rTree.add( pNode->pp_children[i]->i_id, UStringPtr( pName ), false, m_pPlaylist->status.p_item == pNode->pp_children[i], false, pNode->pp_children[i]->i_flags & PLAYLIST_RO_FLAG,