Changeset View
Changeset View
Standalone View
Standalone View
ksmserver/startup.cpp
Show First 20 Lines • Show All 270 Lines • ▼ Show 20 Line(s) | |||||
271 | 271 | | |||
272 | void RestoreSessionJob::start() | 272 | void RestoreSessionJob::start() | ||
273 | { | 273 | { | ||
274 | if (m_ksmserver->defaultSession()) { | 274 | if (m_ksmserver->defaultSession()) { | ||
275 | QTimer::singleShot(0, this, [this]() {emitResult();}); | 275 | QTimer::singleShot(0, this, [this]() {emitResult();}); | ||
276 | return; | 276 | return; | ||
277 | } | 277 | } | ||
278 | 278 | | |||
279 | m_ksmserver->restoreLegacySession(KSharedConfig::openConfig().data()); | ||||
279 | m_ksmserver->lastAppStarted = 0; | 280 | m_ksmserver->lastAppStarted = 0; | ||
280 | m_ksmserver->lastIdStarted.clear(); | 281 | m_ksmserver->lastIdStarted.clear(); | ||
281 | m_ksmserver->state = KSMServer::Restoring; | 282 | m_ksmserver->state = KSMServer::Restoring; | ||
282 | connect(m_ksmserver, &KSMServer::sessionRestored, this, [this]() {emitResult();}); | 283 | connect(m_ksmserver, &KSMServer::sessionRestored, this, [this]() {emitResult();}); | ||
283 | m_ksmserver->tryRestoreNext(); | 284 | m_ksmserver->tryRestoreNext(); | ||
284 | } | 285 | } | ||
285 | 286 | | |||
286 | void StartupPhase2::runUserAutostart() | 287 | void StartupPhase2::runUserAutostart() | ||
▲ Show 20 Lines • Show All 106 Lines • Show Last 20 Lines |