[evolution] Bug 733518 - Make VOICE type optional for TEL in EContact
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug 733518 - Make VOICE type optional for TEL in EContact
- Date: Fri, 21 Nov 2014 10:12:35 +0000 (UTC)
commit a4f32cb3c5abc08252818a8d283d9143137945a6
Author: Milan Crha <mcrha redhat com>
Date: Fri Nov 21 11:12:21 2014 +0100
Bug 733518 - Make VOICE type optional for TEL in EContact
addressbook/util/eab-book-util.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/util/eab-book-util.c b/addressbook/util/eab-book-util.c
index 9eadb44..18c7ec0 100644
--- a/addressbook/util/eab-book-util.c
+++ b/addressbook/util/eab-book-util.c
@@ -245,7 +245,9 @@ eab_get_phone_type_index (EVCardAttribute *attr)
for (i = 0; i < G_N_ELEMENTS (eab_phone_types); i++) {
if (e_vcard_attribute_has_type (attr, eab_phone_types[i].type_1) &&
- (eab_phone_types[i].type_2 == NULL || e_vcard_attribute_has_type (attr,
eab_phone_types[i].type_2)))
+ (eab_phone_types[i].type_2 == NULL || e_vcard_attribute_has_type (attr,
eab_phone_types[i].type_2) ||
+ (g_ascii_strcasecmp (eab_phone_types[i].type_2, "VOICE") == 0 &&
+ g_list_length (e_vcard_attribute_get_param (attr, EVC_TYPE)) == 1)))
return i;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]