From 5c40f7b46c142832f36a072d7bccf35c26fb1b49 Mon Sep 17 00:00:00 2001 From: Matt Vogt Date: Wed, 19 Aug 2015 14:32:26 +1000 Subject: [PATCH] [libcontacts] Process contact additions if we have a change listener Otherwise, existing resolutions may not be updated by the addition of better matches. --- src/seasidecache.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/seasidecache.cpp b/src/seasidecache.cpp index e00b3a3..795a5d0 100644 --- a/src/seasidecache.cpp +++ b/src/seasidecache.cpp @@ -1923,7 +1923,9 @@ void SeasideCache::timerEvent(QTimerEvent *event) void SeasideCache::contactsAdded(const QList &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); } }