Skip to content

Commit

Permalink
Merge branch 'fix_location_agreements' into 'master'
Browse files Browse the repository at this point in the history
Fix location agreements

See merge request mer-core/nemo-qml-plugin-systemsettings!131
  • Loading branch information
pvuorela committed Jan 31, 2020
2 parents 498d326 + f5f8eca commit 3479317
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion rpm/nemo-qml-plugin-systemsettings.spec
@@ -1,6 +1,6 @@
Name: nemo-qml-plugin-systemsettings
Summary: System settings plugin for Nemo Mobile
Version: 0.5
Version: 0.5.37
Release: 1
Group: System/Libraries
License: BSD
Expand Down
11 changes: 8 additions & 3 deletions src/locationsettings.cpp
Expand Up @@ -288,9 +288,14 @@ bool LocationSettingsPrivate::updateProvider(const QString &name, const Location
m_pendingAgreements.removeOne(name);
emit q->pendingAgreementsChanged();
}
} else if (provider.hasAgreement && !provider.agreementAccepted && !m_pendingAgreements.contains(name)) {
m_pendingAgreements.append(name);
emit q->pendingAgreementsChanged();
} else if (provider.hasAgreement) {
if (!provider.agreementAccepted && !m_pendingAgreements.contains(name)) {
m_pendingAgreements.append(name);
emit q->pendingAgreementsChanged();
} else if (provider.agreementAccepted && m_pendingAgreements.contains(name)) {
m_pendingAgreements.removeOne(name);
emit q->pendingAgreementsChanged();
}
}
}

Expand Down

0 comments on commit 3479317

Please sign in to comment.