fix sort by progress

This commit is contained in:
Cœur 2024-04-27 15:56:07 +08:00
parent e9bc4bea4d
commit c17caf9f08
1 changed files with 5 additions and 0 deletions

View File

@ -157,6 +157,11 @@ bool TorrentFilter::lessThan(QModelIndex const& left, QModelIndex const& right)
val = tr_compare_3way(a->metadataPercentDone(), b->metadataPercentDone());
}
if (val == 0)
{
val = tr_compare_3way(a->percentComplete(), b->percentComplete());
}
if (val == 0)
{
val = a->compareSeedProgress(*b);