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
Merge pull request #56 from matthewvogt/remove-grouping-fallback
[libcontacts] Avoid fallback to non-name details when grouping
  • Loading branch information
matthewvogt committed Nov 7, 2013
2 parents 1e47677 + e48bddb commit ce119b6
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/seasidecache.cpp
Expand Up @@ -718,15 +718,10 @@ QString SeasideCache::determineNameGroup(const CacheItem *cacheItem)
QString group;
if (!nameProperty.isEmpty()) {
group = mLocale.indexBucket(nameProperty);
} else if (!cacheItem->displayLabel.isEmpty()) {
} else if (!cacheItem->displayLabel.isEmpty()) {
group = mLocale.indexBucket(cacheItem->displayLabel);
}

if (group.isNull() || !allContactNameGroups.contains(group)) {
QString displayLabel = generateDisplayLabelFromNonNameDetails(cacheItem->contact);
if (!displayLabel.isEmpty())
group = mLocale.indexBucket(displayLabel);
}
if (group.isNull() || !allContactNameGroups.contains(group)) {
group = QString::fromLatin1("#"); // 'other' group
}
Expand Down

0 comments on commit ce119b6

Please sign in to comment.