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
1 changed files with 1 additions and 1 deletions

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());
}