@@ -48,7 +48,7 @@ QString System::wizardEnabledPath()
49QString System::currentFrameworkPath()
49QString System::currentFrameworkPath()
51− return QDir::home().filePath(QStringLiteral("/usr/share/click/framework/current"));
51+ return QDir::home().filePath(QStringLiteral("/usr/share/click/frameworks/current"));
@@ -59,9 +59,15 @@ if wizard-has-run does exists but does NOT match current framework == is update
59if wizard-has-run does exists but does match current framework == show no wizard
59if wizard-has-run does exists but does match current framework == show no wizard
62+bool System::wizardPathExists() {
63+ return QFile::exists(wizardEnabledPath());
62bool System::wizardEnabled() const
66bool System::wizardEnabled() const
64− return !QFile::exists(wizardEnabledPath());
68+ if (!wizardPathExists())
67QString System::readCurrentFramework()
73QString System::readCurrentFramework()
@@ -87,7 +93,7 @@ QString System::version() const
88bool System::isUpdate() const
94bool System::isUpdate() const
90− if (!wizardEnabled())
96+ if (!wizardPathExists())
91 return false;
97 return false;
93 return readCurrentFramework() != readWizardEnabled();
99 return readCurrentFramework() != readWizardEnabled();