mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-24 15:15:24 -07:00
Sort invalid dates regardless of sorting order.
This commit is contained in:
parent
dabb47efb1
commit
9120afa123
1 changed files with 2 additions and 2 deletions
|
@ -62,8 +62,8 @@ protected:
|
|||
QDateTime vR = sourceModel()->data(right).toDateTime();
|
||||
|
||||
//not valid dates should be sorted at the bottom.
|
||||
if (!vL.isValid()) return !(sortOrder() == Qt::AscendingOrder);
|
||||
if (!vR.isValid()) return (sortOrder() == Qt::AscendingOrder);
|
||||
if (!vL.isValid()) return false;
|
||||
if (!vR.isValid()) return true;
|
||||
|
||||
return vL < vR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue