Commit ad87b924 authored by Ilkka Ollakka's avatar Ilkka Ollakka

use items showflags, parentItem can be NULL

parent 6f00c8d1
......@@ -185,10 +185,10 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
return;
}
assert( parentItem->i_showflags < COLUMN_END );
assert( i_showflags < COLUMN_END );
/* Meta: ID */
if( parentItem->i_showflags & COLUMN_NUMBER )
if( i_showflags & COLUMN_NUMBER )
{
QModelIndex idx = model->index( this, 0 );
item_col_strings.append( QString::number( idx.row() + 1 ) );
......@@ -196,7 +196,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
/* Other meta informations */
for( uint32_t i_index=2; i_index < COLUMN_END; i_index <<= 1 )
{
if( parentItem->i_showflags & i_index )
if( i_showflags & i_index )
{
char *psz = psz_column_meta( p_item->p_input, i_index );
item_col_strings.append( qfu( psz ) );
......
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