PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
intf_thread_t *_p_intf, /* main Qt p_intf */
playlist_item_t * p_root,
PLModel::PLModel( playlist_t *_p_playlist, /* THEPL */
intf_thread_t *_p_intf, /* main Qt p_intf */
playlist_item_t * p_root,
- playlist_item_t *p_pl = p_playlist->p_local_category;
- playlist_item_t *p_ml = p_playlist->p_ml_category;
+ playlist_item_t *p_pl = p_playlist->p_playing;
+ playlist_item_t *p_ml = p_playlist->p_media_library;
PLAYLIST_APPEND | PLAYLIST_SPREPARSE, PLAYLIST_END,
p_input->i_duration,
p_input->i_options, p_input->ppsz_options, p_input->optflagc,
PLAYLIST_APPEND | PLAYLIST_SPREPARSE, PLAYLIST_END,
p_input->i_duration,
p_input->i_options, p_input->ppsz_options, p_input->optflagc,
- /* check whether we are in tree view */
- bool tree = false;
- playlist_item_t *p_up = p_item;
- while( p_up )
- {
- if ( p_up == p_playlist->p_root_category ) tree = true;
- p_up = p_up->p_parent;
- }
+
+ bool tree = var_InheritBool( p_intf, "playlist-tree" );
+