]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/playlist/playlist_item.cpp
qt4: remove b_is_node and use childCount() > 0 instead in playlist_model
[vlc] / modules / gui / qt4 / components / playlist / playlist_item.cpp
index f1603288a625813f911241762c9ec59fdd1c4211..6c0c3a3f1010051b75c83abd0f67fd680ca24401 100644 (file)
@@ -54,7 +54,6 @@ void PLItem::init( playlist_item_t *_playlist_item, PLItem *parent, PLModel *m,
     i_id       = _playlist_item->i_id;           /* Playlist item specific id */
     model      = m;               /* PLModel (QAbsmodel) */
     i_type     = -1;              /* Item type - Avoid segfault */
-    b_is_node  = _playlist_item->i_children > -1;
     p_input    = _playlist_item->p_input;
     vlc_gc_incref( p_input );
 
@@ -144,7 +143,6 @@ void PLItem::update( playlist_item_t *p_item )
 
     /* Useful for the model */
     i_type = p_item->p_input->i_type;
-    b_is_node = p_item->i_children > -1;
 
     i_showflags = parentItem ? parentItem->i_showflags : i_showflags;
 }