Commit 6fa9714e authored by pvuorela's avatar pvuorela

[nemo-systemsettings] Fix apgs pending agreement update. Fixes JB#48765

Setting location mode and then accepting the agreement wasn't
removing it from the pending list.
parent 498d3260
...@@ -288,9 +288,14 @@ bool LocationSettingsPrivate::updateProvider(const QString &name, const Location ...@@ -288,9 +288,14 @@ bool LocationSettingsPrivate::updateProvider(const QString &name, const Location
m_pendingAgreements.removeOne(name); m_pendingAgreements.removeOne(name);
emit q->pendingAgreementsChanged(); emit q->pendingAgreementsChanged();
} }
} else if (provider.hasAgreement && !provider.agreementAccepted && !m_pendingAgreements.contains(name)) { } else if (provider.hasAgreement) {
m_pendingAgreements.append(name); if (!provider.agreementAccepted && !m_pendingAgreements.contains(name)) {
emit q->pendingAgreementsChanged(); m_pendingAgreements.append(name);
emit q->pendingAgreementsChanged();
} else if (provider.agreementAccepted && m_pendingAgreements.contains(name)) {
m_pendingAgreements.removeOne(name);
emit q->pendingAgreementsChanged();
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment