[vlc-devel] commit: use items showflags, parentItem can be NULL (Ilkka Ollakka )
git version control
git at videolan.org
Sun Sep 21 13:40:33 CEST 2008
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Sun Sep 21 14:43:21 2008 +0300| [ad87b9243e4314f6cef58362cfddb525db35de6e] | committer: Ilkka Ollakka
use items showflags, parentItem can be NULL
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad87b9243e4314f6cef58362cfddb525db35de6e
---
.../gui/qt4/components/playlist/playlist_item.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_item.cpp b/modules/gui/qt4/components/playlist/playlist_item.cpp
index 46f1cf5..bebc324 100644
--- a/modules/gui/qt4/components/playlist/playlist_item.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_item.cpp
@@ -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 ) );
More information about the vlc-devel
mailing list