SessionManager: Avoid to accumulate outdated entries in the session file
ClosedPublic

Authored by loh.tar on Nov 5 2018, 4:14 PM.

Details

Summary

Because the various save routines writes always only actual data to the
session file remain data from e.g. closed documents, views or splitter which
is at least ugly and a waste of expensive disk space :-)

Test Plan

Take a look in your session files, typical at ~/.local/share/kate/sessions/ you will notice a bunch of file hints you didn't have open/loaded

Diff Detail

Repository
R40 Kate
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
loh.tar created this revision.Nov 5 2018, 4:14 PM
Restricted Application added a subscriber: kwrite-devel. · View Herald TranscriptNov 5 2018, 4:14 PM
loh.tar requested review of this revision.Nov 5 2018, 4:14 PM

Looks reasonable, thanks! Will push it.

cullmann accepted this revision.Nov 11 2018, 2:40 PM
This revision is now accepted and ready to land.Nov 11 2018, 2:40 PM
This revision was automatically updated to reflect the committed changes.