mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 19:30:21 +02:00
Added disc numbers to the Playlist view as well.
This commit is contained in:
committed by
Dominik Schmidt
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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user