Browse Source

Sort invalid dates regardless of sorting order.

adaptive-webui-19844
sledgehammer999 11 years ago
parent
commit
522d68ab0b
  1. 4
      src/transferlistsortmodel.h

4
src/transferlistsortmodel.h

@ -62,8 +62,8 @@ protected: @@ -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…
Cancel
Save