mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-07-31 11:20:22 +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;
|
break;
|
||||||
|
|
||||||
case AlbumPos:
|
case AlbumPos:
|
||||||
|
QString tPos;
|
||||||
if ( query->results().first()->albumpos() == 0 )
|
if ( query->results().first()->albumpos() == 0 )
|
||||||
return QString();
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user