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

Commit

Permalink
[libcontacts] Only update merge candidates with correct results
Browse files Browse the repository at this point in the history
When the filter is not none, the ID query results do not apply to
the merge candidate filter.
  • Loading branch information
matthewvogt committed Jul 30, 2014
1 parent d149396 commit 9ae3597
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/seasidecache.cpp
Expand Up @@ -2398,14 +2398,13 @@ void SeasideCache::notifyNameGroupsChanged(const QSet<QString> &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);
}
}
Expand Down

0 comments on commit 9ae3597

Please sign in to comment.