mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-08-26 05:32:05 +00:00
Sort invalid dates regardless of sorting order.
This commit is contained in:
parent
a730c27aef
commit
522d68ab0b
@ -62,8 +62,8 @@ protected:
|
|||||||
QDateTime vR = sourceModel()->data(right).toDateTime();
|
QDateTime vR = sourceModel()->data(right).toDateTime();
|
||||||
|
|
||||||
//not valid dates should be sorted at the bottom.
|
//not valid dates should be sorted at the bottom.
|
||||||
if (!vL.isValid()) return !(sortOrder() == Qt::AscendingOrder);
|
if (!vL.isValid()) return false;
|
||||||
if (!vR.isValid()) return (sortOrder() == Qt::AscendingOrder);
|
if (!vR.isValid()) return true;
|
||||||
|
|
||||||
return vL < vR;
|
return vL < vR;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user