1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-01 03:40:16 +02:00

Don't show 0 when there is no albumpos for a track

This commit is contained in:
Jeff Mitchell
2011-08-29 12:06:42 -04:00
parent 39bbd128c2
commit 0319e5f2f5

View File

@@ -207,7 +207,9 @@ TrackModel::data( const QModelIndex& index, int role ) const
break; break;
case AlbumPos: case AlbumPos:
return query->results().first()->albumpos(); if ( query->results().first()->albumpos() == 0 )
return QString();
return QString::number( query->results().first()->albumpos() );
break; break;
} }
} }