diff --git a/src/seasidecache.cpp b/src/seasidecache.cpp index fc65a26..8352477 100644 --- a/src/seasidecache.cpp +++ b/src/seasidecache.cpp @@ -2398,14 +2398,13 @@ void SeasideCache::notifyNameGroupsChanged(const QSet &groups) void SeasideCache::contactIdsAvailable() { - if (!m_contactsToFetchCandidates.isEmpty()) { - foreach (const QContactId &id, m_contactIdRequest.ids()) { - m_candidateIds.insert(id); + if (m_syncFilter == FilterNone) { + if (!m_contactsToFetchCandidates.isEmpty()) { + foreach (const QContactId &id, m_contactIdRequest.ids()) { + m_candidateIds.insert(id); + } } - return; - } - - if (m_syncFilter != FilterNone) { + } else { synchronizeList(this, m_contacts[m_syncFilter], m_cacheIndex, internalIds(m_contactIdRequest.ids()), m_queryIndex); } }