Skip to content

avoid invalid lastX times

Christoph Cullmann requested to merge work/overflow into master

if you have some broken config, with invalid future times, the start functions for all timers will overflow

e.g. I have here 2063 as year in my config

this will sanitize the lastX entries after loading from config to avoid obscure future dates

This avoids e.g.

QObject::startTimer: Timers cannot have negative intervals

on each Kate startup.

My config had this content

LastEncouragement=@DateTime(\0\0\0\x10\0\0\0\0\0\0%\xc3\x83\0\0\0\0\0) LastSubmission=@DateTime(\0\0\0\x10\0\0\0\0\0\0%\xc3\x83\0\0\0\0\0)

Merge request reports