mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Don't reorder the torrents in the transfer list if not necessary
The current sorting algorithm is not stable and causes undesidered rearrangements of the transfer list when different torrents have same values in respect to the current sorting criterion. Fix this by using the priority, the seed date and the hash of the torrents as fallback values to determine the order. Closes #2158. Closes #2526.
This commit is contained in:
@@ -50,6 +50,7 @@ public:
|
||||
|
||||
private:
|
||||
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
|
||||
bool lowerPositionThan(const QModelIndex &left, const QModelIndex &right) const;
|
||||
bool filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
|
||||
|
||||
bool matchStatusFilter(int sourceRow, const QModelIndex &sourceParent) const;
|
||||
|
||||
Reference in New Issue
Block a user