- if( p_popup_item->i_children > -1 )
- {
- if( event.GetId() == PopupPlay_Event &&
- p_popup_item->i_children > 0 )
- {
- playlist_Control( p_playlist, PLAYLIST_VIEWPLAY,
- i_current_view, p_popup_item,
- p_popup_item->pp_children[0] );
- }
- else
- {
- playlist_Control( p_playlist, PLAYLIST_VIEWPLAY,
- i_current_view, p_popup_item, NULL );
- }
- }
- else
- {
- if( event.GetId() == PopupPlay_Event )
- {
- playlist_Control( p_playlist, PLAYLIST_VIEWPLAY,
- i_current_view, p_popup_parent,
- p_popup_item );
- }
- }
+ if( p_popup_parent == p_current_treeroot )
+ break;
+ p_popup_parent = p_popup_parent->p_parent;
+ }
+
+ if( p_popup_parent )
+ {
+ playlist_Control( p_playlist, PLAYLIST_VIEWPLAY, true, p_popup_parent,
+ p_popup_item );