@@ -33,7 +33,7 @@ AccountsService::AccountsService(QObject* parent)
3333 m_passwordDisplayHint(Keyboard),
3434 m_failedLogins(0),
3535 m_hereEnabled(false),
36− m_hereLicensePath(" ") // blank space means not set yet
36+ m_hereLicensePath() // null means not set yet
3737{
3838 connect(m_service, SIGNAL(propertiesChanged(const QString &, const QString &, const QStringList &)),
3939 this, SLOT(propertiesChanged(const QString &, const QString &, const QStringList &)));
@@ -118,6 +118,11 @@ QString AccountsService::hereLicensePath() const
118118 return m_hereLicensePath;
119119}
120120
121+bool AccountsService::hereLicensePathValid() const
122+{
123+ return !m_hereLicensePath.isNull();
124+}
125+
121126void AccountsService::updateDemoEdges()
122127{
123128 auto demoEdges = m_service->getUserProperty(m_user, "com.canonical.unity.AccountsService", "demo-edges").toBool();
@@ -194,7 +199,7 @@ void AccountsService::updateHereLicensePath()
194199{
195200 QString hereLicensePath = m_service->getUserProperty(m_user, "com.ubuntu.location.providers.here.AccountsService", "LicenseBasePath").toString();
196201
197− if (!hereLicensePath.isEmpty() && !QFile::exists(hereLicensePath))
202+ if (hereLicensePath.isEmpty() || !QFile::exists(hereLicensePath))
198203 hereLicensePath = "";
199204
200205 if (m_hereLicensePath != hereLicensePath) {