From f899ccdc0fa3e28dd614c06f297d1d5fccceeb67 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Sat, 16 Mar 2019 12:27:22 +0100 Subject: [PATCH] [KSplashQML] Update stages comment and make code clearer There's an kcminit stage that wasn't documented. Also change m_stage and then check it so the number here matches the number of stages in the comment. CCBUG: 405446 Differential Revision: https://phabricator.kde.org/D19801 --- ksplash/ksplashqml/splashapp.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ksplash/ksplashqml/splashapp.cpp b/ksplash/ksplashqml/splashapp.cpp index 0c8770d08..db9d60f72 100644 --- a/ksplash/ksplashqml/splashapp.cpp +++ b/ksplash/ksplashqml/splashapp.cpp @@ -37,8 +37,9 @@ #define TEST_STEP_INTERVAL 2000 /** - * There are 6 used stages in ksplash + * There are 7 used stages in ksplash * - initial + * - kcminit * - kinit * - ksmserver * - wm @@ -124,11 +125,10 @@ void SplashApp::setStage(const QString &stage) void SplashApp::setStage(int stage) { - if (m_stage == 6) { + m_stage = stage; + if (m_stage == 7) { QGuiApplication::exit(EXIT_SUCCESS); } - - m_stage = stage; foreach (SplashWindow *w, m_windows) { w->setStage(stage); }