1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-22 14:10:34 +00:00

Only compare magnet state if not yet different

This commit is contained in:
Mike Gelfand 2017-04-21 00:43:35 +03:00
parent 6dd034b826
commit c5e730c63a

View file

@ -155,7 +155,7 @@ bool TorrentFilter::lessThan(QModelIndex const& left, QModelIndex const& right)
// fall through
case SortMode::SORT_BY_PROGRESS:
if (a->isMagnet() != b->isMagnet())
if (val == 0)
{
val = -compare(a->isMagnet(), b->isMagnet());
}