@@ -33,7 +33,7 @@ AccountsService::AccountsService(QObject* parent)
33 m_passwordDisplayHint(Keyboard),
33 m_passwordDisplayHint(Keyboard),
34 m_failedLogins(0),
34 m_failedLogins(0),
35 m_hereEnabled(false),
35 m_hereEnabled(false),
36− m_hereLicensePath(" ") // blank space means not set yet
36+ m_hereLicensePath() // null means not set yet
38 connect(m_service, SIGNAL(propertiesChanged(const QString &, const QString &, const QStringList &)),
38 connect(m_service, SIGNAL(propertiesChanged(const QString &, const QString &, const QStringList &)),
39 this, SLOT(propertiesChanged(const QString &, const QString &, const QStringList &)));
39 this, SLOT(propertiesChanged(const QString &, const QString &, const QStringList &)));
@@ -118,6 +118,11 @@ QString AccountsService::hereLicensePath() const
118 return m_hereLicensePath;
118 return m_hereLicensePath;
121+bool AccountsService::hereLicensePathValid() const
123+ return !m_hereLicensePath.isNull();
121void AccountsService::updateDemoEdges()
126void AccountsService::updateDemoEdges()
123 auto demoEdges = m_service->getUserProperty(m_user, "com.canonical.unity.AccountsService", "demo-edges").toBool();
128 auto demoEdges = m_service->getUserProperty(m_user, "com.canonical.unity.AccountsService", "demo-edges").toBool();
@@ -194,7 +199,7 @@ void AccountsService::updateHereLicensePath()
195 QString hereLicensePath = m_service->getUserProperty(m_user, "com.ubuntu.location.providers.here.AccountsService", "LicenseBasePath").toString();
200 QString hereLicensePath = m_service->getUserProperty(m_user, "com.ubuntu.location.providers.here.AccountsService", "LicenseBasePath").toString();
197− if (!hereLicensePath.isEmpty() && !QFile::exists(hereLicensePath))
202+ if (hereLicensePath.isEmpty() || !QFile::exists(hereLicensePath))
198 hereLicensePath = "";
203 hereLicensePath = "";
200 if (m_hereLicensePath != hereLicensePath) {
205 if (m_hereLicensePath != hereLicensePath) {