@@ -34,6 +34,7 @@
3434#include <QDir>
3535#include <QSet>
3636#include <QStandardPaths>
37+#include <QSettings>
3738
3839PageList::PageList(QObject *parent)
3940 : QObject(parent),
@@ -66,6 +67,21 @@ PageList::PageList(QObject *parent)
6667 Q_FOREACH(const QString &page, disabledPages) {
6768 m_pages.remove(page);
6869 }
70+
71+ // If there was a system update installed, skip until the last page to just greet the user
72+ QSettings settings;
73+
74+ if (settings.value(QStringLiteral("Wizard/SkipUntilFinishedPage")).toBool()) {
75+ const QString lastPage = m_pages.lastKey();
76+ Q_FOREACH(const QString &page, m_pages.keys()) {
77+ if (Q_UNLIKELY(page != lastPage)) {
78+ m_pages.remove(page);
79+ }
80+ }
81+
82+ // ... and reset it again for the next run
83+ settings.remove(QStringLiteral("Wizard/SkipUntilFinishedPage"));
84+ }
6985}
7086
7187QStringList PageList::entries() const