mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +02:00
Don't show 0 when there is no albumpos for a track
This commit is contained in:
@@ -207,7 +207,9 @@ TrackModel::data( const QModelIndex& index, int role ) const
|
||||
break;
|
||||
|
||||
case AlbumPos:
|
||||
return query->results().first()->albumpos();
|
||||
if ( query->results().first()->albumpos() == 0 )
|
||||
return QString();
|
||||
return QString::number( query->results().first()->albumpos() );
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user