mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-18 23:09:42 +01:00
Added disc numbers to the Playlist view as well.
This commit is contained in:
parent
9661a38c10
commit
a7fd04e1f3
@ -217,9 +217,18 @@ TrackModel::data( const QModelIndex& index, int role ) const
|
||||
break;
|
||||
|
||||
case AlbumPos:
|
||||
QString tPos;
|
||||
if ( query->results().first()->albumpos() == 0 )
|
||||
return QString();
|
||||
return QString::number( query->results().first()->albumpos() );
|
||||
else
|
||||
{
|
||||
tPos = QString::number( query->results().first()->albumpos() );
|
||||
if( query->results().first()->discnumber() == 0 )
|
||||
return tPos;
|
||||
else
|
||||
return QString( "%1.%2" ).arg( QString::number( query->results().first()->discnumber() ) )
|
||||
.arg( tPos );
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user