Commit 3519bb1d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: playlist Item MUST inherit from their parent the show flags on update.

parent 687c8659
...@@ -64,6 +64,7 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m, QSett ...@@ -64,6 +64,7 @@ void PLItem::init( int _i_id, int _i_input_id, PLItem *parent, PLModel *m, QSett
{ {
if( model->i_depth == DEPTH_SEL ) /* Selector Panel */ if( model->i_depth == DEPTH_SEL ) /* Selector Panel */
{ {
i_showflags = 0;
item_col_strings.append( "" ); item_col_strings.append( "" );
} }
else else
...@@ -185,7 +186,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent ) ...@@ -185,7 +186,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
return; return;
} }
assert( i_showflags < COLUMN_END ); i_showflags = parentItem ? parentItem->i_showflags : i_showflags;
/* Meta: ID */ /* Meta: ID */
if( i_showflags & COLUMN_NUMBER ) if( i_showflags & COLUMN_NUMBER )
...@@ -204,3 +205,4 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent ) ...@@ -204,3 +205,4 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
} }
} }
} }
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