1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-21 16:29:43 +01:00

only show infinity icon for stations, not auto playlists

This commit is contained in:
Leo Franchi 2011-08-11 18:10:55 -04:00
parent c99fff2b16
commit a9c0d5f820

View File

@ -131,7 +131,7 @@ WelcomePlaylistModel::data( const QModelIndex& index, int role ) const
}
case TrackCountRole:
{
if ( !pl.dynamicCast< Tomahawk::DynamicPlaylist >().isNull() )
if ( !pl.dynamicCast< Tomahawk::DynamicPlaylist >().isNull() && pl.dynamicCast< Tomahawk::DynamicPlaylist >()->mode() == OnDemand )
return QString( QChar( 0x221E ) );
else
return pl->entries().count();