Check date validity before comparing it
ClosedPublic

Authored by broulik on Jan 4 2018, 1:05 PM.

Details

Summary

Prevents it from treating items with unknown date to be newer than anything else.

BUG: 388521

Test Plan

Configured KMail to select newest email when entering a folder, no longer have it jump to the end of the list to select an "Unknown" email

Diff Detail

Repository
R94 PIM: Message Library
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik requested review of this revision.Jan 4 2018, 1:05 PM
broulik created this revision.
broulik updated this revision to Diff 24709.Jan 4 2018, 1:08 PM

Check mi->date() only once

mlaurent accepted this revision.Jan 4 2018, 3:31 PM
This revision is now accepted and ready to land.Jan 4 2018, 3:31 PM
This revision was automatically updated to reflect the committed changes.
Restricted Application added a project: KDE PIM. · View Herald TranscriptJan 4 2018, 4:33 PM
Restricted Application added a subscriber: KDE PIM. · View Herald Transcript