Commit c850b95b authored by Clément Stenac's avatar Clément Stenac

Handle the case when parent is root

parent 4d268944
......@@ -499,6 +499,13 @@ wxTreeItemId Playlist::FindItem( wxTreeItemId root, playlist_item_t *p_item )
wxTreeItemId item = treectrl->GetFirstChild( root, cookie );
wxTreeItemId child;
p_wxcurrent = (PlaylistItem *)treectrl->GetItemData( root );
if( p_wxcurrent->p_item == p_item )
{
return root;
}
if( !p_item )
{
wxTreeItemId dummy;
......
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