Diffusion Kate 68c512cedcc5

SessionManager: Avoid to accumulate outdated entries in the session file

Authored by loh.tar on Nov 11 2018, 2:40 PM.

Description

SessionManager: Avoid to accumulate outdated entries in the session file

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

Reviewers: Kate, cullmann

Reviewed By: Kate, cullmann

Subscribers: cullmann, kwrite-devel, Kate

Tags: Kate

Differential Revision: https://phabricator.kde.org/D16687