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

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not insert multiple instance of the same number-contactId pair
  • Loading branch information
matthewvogt committed Aug 19, 2015
1 parent a6ff882 commit 876808a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/seasidecache.cpp
Expand Up @@ -2173,7 +2173,8 @@ bool SeasideCache::updateContactIndexing(const QContact &oldContact, const QCont
resolveUnknownAddresses(address.first, address.second, item);
}

m_phoneNumberIds.insert(address.second, iid);
if (!m_phoneNumberIds.contains(address.second, iid))
m_phoneNumberIds.insert(address.second, iid);
}
}

Expand Down

0 comments on commit 876808a

Please sign in to comment.