[ksmserver] Fix session restore check

Authored by davidedmundson on Oct 31 2018, 5:12 PM.

Description

[ksmserver] Fix session restore check

Summary:
The old code checked ksmserver->defaultSession in the Startup
constructor before ksmserver was set up by main.cpp

This refactor moves it to the job, so we'll be checking if we're
restoring or not after ksmserver has been set up by main.cpp as well as
making the initial code path a bit clearer.

Test Plan:
Logged in with session restore
Logged in with a default session

Reviewers: ahartmetz

Reviewed By: ahartmetz

Subscribers: ahartmetz, plasma-devel

Tags: Plasma

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

Details

Committed
davidedmundsonOct 31 2018, 5:12 PM
Reviewer
ahartmetz
Differential Revision
D16550: [ksmserver] Fix session restore check
Parents
R120:50815c0c305d: [ksmserver] Add missing license
Branches
Unknown
Tags
Unknown