ContactsTableViewController: fix contacts list when having 2 contacts with the same name

This commit is contained in:
Gautier Pelloux-Prayer 2015-10-02 14:27:14 +02:00
parent 0261734e8d
commit 1e4c5b58ad

View file

@ -194,6 +194,9 @@ static int ms_strcmpfuz(const char *fuzzy_word, const char *sentence) {
forKey:firstChar
selector:@selector(caseInsensitiveCompare:)];
}
while ([subDic objectForKey:name2ASCII] != nil) {
name2ASCII = [name2ASCII stringByAppendingString:@"_"];
}
[subDic insertObject:lPerson forKey:name2ASCII selector:@selector(caseInsensitiveCompare:)];
}
}