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:
parent
e1b0125a46
commit
fe8149ee8a
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user