Commit b36bd125 authored by mvogt's avatar mvogt

[libcontacts] Report changes to name groups on contact removal

parent a6c51832
......@@ -828,6 +828,13 @@ void SeasideCache::removeContactData(
m_contacts[filter].remove(row);
if (filter == FilterAll) {
QList<QChar> modifiedNameGroups;
const QChar nameGroup = nameGroupForCacheItem(existingItem(contactId));
removeFromContactNameGroup(internalId(contactId), nameGroup, &modifiedNameGroups);
notifyNameGroupsChanged(modifiedNameGroups);
}
for (int i = 0; i < models.count(); ++i)
models.at(i)->sourceItemsRemoved();
}
......@@ -1743,8 +1750,7 @@ void SeasideCache::appendContacts(const QList<QContact> &contacts, FilterType fi
for (int i = 0; i < models.count(); ++i)
models.at(i)->sourceItemsInserted(begin, end);
if (!m_nameGroupChangeListeners.isEmpty())
notifyNameGroupsChanged(m_contactNameGroups.keys());
notifyNameGroupsChanged(m_contactNameGroups.keys());
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment