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

Commit

Permalink
Merge pull request #23 from matthewvogt/updates
Browse files Browse the repository at this point in the history
[libcontacts] Report updates after they are effected
  • Loading branch information
matthewvogt committed Aug 28, 2013
2 parents c99b59d + fb2e48a commit f2828c9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/seasidecache.cpp
Expand Up @@ -1401,12 +1401,6 @@ void SeasideCache::updateCache(CacheItem *item, const QContact &contact, bool pa

item->statusFlags = contact.detail<QContactStatusFlags>().flagsValue();

ItemListener *listener = item->listeners;
while (listener) {
listener->itemUpdated(item);
listener = listener->next;
}

if (item->itemData) {
item->itemData->updateContact(contact, &item->contact, item->contactState);
} else {
Expand All @@ -1415,6 +1409,12 @@ void SeasideCache::updateCache(CacheItem *item, const QContact &contact, bool pa

item->displayLabel = generateDisplayLabel(item->contact, m_displayLabelOrder);
item->nameGroup = determineNameGroup(item);

ItemListener *listener = item->listeners;
while (listener) {
listener->itemUpdated(item);
listener = listener->next;
}
}

bool SeasideCache::updateContactIndexing(const QContact &oldContact, const QContact &contact, quint32 iid, const QSet<DetailTypeId> &queryDetailTypes)
Expand Down

0 comments on commit f2828c9

Please sign in to comment.