mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Partial revert eac8838dc2
. Fixes #7952.
mapFromSource() didn't work as expected, when used in lessThan(), it sometimes returns an invalid QModelIndex. A crash is observed when filtering source model via filterAcceptsRow() in #7952, the crash is due to endless recursive of filterAcceptsRow() & lessThan() calling each other and mapFromSource() is the culprit of it.
This commit is contained in:
parent
f457937980
commit
86c5a8df75
5 changed files with 7 additions and 7 deletions
|
@ -98,7 +98,7 @@ bool TransferListSortModel::lessThan(const QModelIndex &left, const QModelIndex
|
|||
if (result != 0)
|
||||
return (result < 0);
|
||||
|
||||
return (mapFromSource(left) < mapFromSource(right));
|
||||
return (left < right);
|
||||
}
|
||||
|
||||
case TorrentModel::TR_ADD_DATE:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue