Qt4: playlist Item MUST inherit from their parent the show flags on update.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 21 Sep 2008 18:45:44 +0000 (11:45 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 21 Sep 2008 18:47:48 +0000 (11:47 -0700)
modules/gui/qt4/components/playlist/playlist_item.cpp

index bebc324..71f3fd0 100644 (file)
@@ -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 */
         {
+            i_showflags = 0;
             item_col_strings.append( "" );
         }
         else
@@ -185,7 +186,7 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
         return;
     }
 
-    assert( i_showflags < COLUMN_END );
+    i_showflags = parentItem ? parentItem->i_showflags : i_showflags;
 
     /* Meta: ID */
     if( i_showflags & COLUMN_NUMBER )
@@ -204,3 +205,4 @@ void PLItem::update( playlist_item_t *p_item, bool iscurrent )
         }
     }
 }
+