1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-03-20 07:49:42 +01:00

* Fixed sorting by score.

This commit is contained in:
Christian Muehlhaeuser 2012-06-16 08:26:20 +02:00
parent e1b0125a46
commit fe8149ee8a

View File

@ -331,6 +331,13 @@ PlayableProxyModel::lessThan( int column, const Tomahawk::query_ptr& q1, const T
return size1 < size2;
}
else if ( column == PlayableModel::Score ) // sort by file score
{
if ( score1 == score2 )
return id1 < id2;
return score1 < score2;
}
else if ( column == PlayableModel::AlbumPos ) // sort by album pos
{
if ( discnumber1 != discnumber2 )