Many times has happened to me that my system crashed or something and I had to open Kate again, but everything I had opened in Kate during the crash is not in the "Open recent..." menu. I assume that is because it is added there on the file close, but if the file is not closed properly in Kate for whatever reason, the menu remains empty. Therefore I'd like to suggest to add the files there on the file opening event rather than closing.
Is it really on file close? Without looking into the code, I would guess a sync is missing, and that's why it's not saved on crash.
> Is it really on file close? I actually don't know, I simply assumed so. But yeah the missing sync() makes sense.
...or it also could be, that a sync of the kate session is missing. As iirc, the recent files are per session.
*** This bug has been marked as a duplicate of bug 336676 ***