1
0
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:
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;
case AlbumPos:
return query->results().first()->albumpos();
if ( query->results().first()->albumpos() == 0 )
return QString();
return QString::number( query->results().first()->albumpos() );
break;
}
}