mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-20 15:59:42 +01:00
Don't show 0 when there is no albumpos for a track
This commit is contained in:
parent
39bbd128c2
commit
0319e5f2f5
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user