Commit f899ccdc authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[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
parent d4b5eda1
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment