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:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user