@@ -56,9 +56,9 @@ QString System::currentFrameworkPath()
57wizardEnabled and isUpdate logic
57wizardEnabled and isUpdate logic
59−if wizard-has-run does NOT exists == is new install
59+if wizard-has-run does NOT exist == is new install
60−if wizard-has-run does exists but does NOT match current framework == is update
60+if wizard-has-run exists but does NOT match current framework == is update
61−if wizard-has-run does exists but does match current framework == show no wizard
61+if wizard-has-run exists but does match current framework == show no wizard
64bool System::wizardPathExists() {
64bool System::wizardPathExists() {
@@ -67,9 +67,10 @@ bool System::wizardPathExists() {
68bool System::wizardEnabled() const
68bool System::wizardEnabled() const
70− if (!wizardPathExists())
70+ if (!wizardPathExists()) {
71− return true;
71+ return true;
72− return isUpdate();
73+ return isUpdate();
75QString System::readCurrentFramework()
76QString System::readCurrentFramework()
@@ -95,8 +96,9 @@ QString System::version() const
96bool System::isUpdate() const
97bool System::isUpdate() const
98− if (!wizardPathExists())
99+ if (!wizardPathExists()) {
99− return false;
100+ return false;
101 return readCurrentFramework() != readWizardEnabled();
103 return readCurrentFramework() != readWizardEnabled();
@@ -110,8 +112,9 @@ void System::setWizardEnabled(bool enabled)
110 QFile::remove(wizardEnabledPath());
112 QFile::remove(wizardEnabledPath());
112 QDir(wizardEnabledPath()).mkpath(QStringLiteral(".."));
114 QDir(wizardEnabledPath()).mkpath(QStringLiteral(".."));
113− if (QFile::exists(wizardEnabledPath()))
115+ if (QFile::exists(wizardEnabledPath())) {
114− QFile::remove(wizardEnabledPath());
116+ QFile::remove(wizardEnabledPath());
115 QFile::copy(currentFrameworkPath(), wizardEnabledPath());
118 QFile::copy(currentFrameworkPath(), wizardEnabledPath());
116 m_fsWatcher.addPath(wizardEnabledPath());
119 m_fsWatcher.addPath(wizardEnabledPath());
117 Q_EMIT wizardEnabledChanged();
120 Q_EMIT wizardEnabledChanged();