Skip to content
This repository has been archived by the owner on Sep 4, 2021. It is now read-only.

Commit

Permalink
[libcontacts] Process contact additions if we have a change listener
Browse files Browse the repository at this point in the history
Otherwise, existing resolutions may not be updated by the addition of
better matches.
  • Loading branch information
matthewvogt committed Aug 19, 2015
1 parent c8f7016 commit 5c40f7b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/seasidecache.cpp
Expand Up @@ -1923,7 +1923,9 @@ void SeasideCache::timerEvent(QTimerEvent *event)

void SeasideCache::contactsAdded(const QList<QContactId> &ids)
{
if (m_keepPopulated) {
// These additions may change address resolutions, so we may need to process them
const bool relevant(m_keepPopulated || !instancePtr->m_changeListeners.isEmpty());
if (relevant) {
updateContacts(ids, &m_changedContacts);
}
}
Expand Down

0 comments on commit 5c40f7b

Please sign in to comment.