Commit 00094c7d authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

qt: playlist: Display the stream icon when appropriate

Fix #18534
parent 7ba6a7f5
......@@ -346,7 +346,10 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
{
PLItem *item = getItem( index );
/* Used to segfault here because i_type wasn't always initialized */
return QVariant( icons[item->inputItem()->i_type] );
int idx = item->inputItem()->i_type;
if( item->inputItem()->b_net && item->inputItem()->i_type == ITEM_TYPE_FILE )
idx = ITEM_TYPE_STREAM;
return QVariant( icons[idx] );
}
case COLUMN_COVER:
/* !warn: changes tree item line height. Otherwise, override
......
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