aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorMilan Crha <mcrha@src.gnome.org>2007-08-06 23:05:19 +0800
committerMilan Crha <mcrha@src.gnome.org>2007-08-06 23:05:19 +0800
commit32a0b0afc551143c2ccbbd03607468d27ab7adfb (patch)
tree58d9096ecb024355819442b4cb72c740457bebc5 /addressbook/gui/component
parent4d5919868e1df48d6fbde3a870ccad5225887160 (diff)
downloadgsoc2013-evolution-32a0b0afc551143c2ccbbd03607468d27ab7adfb.tar.gz
gsoc2013-evolution-32a0b0afc551143c2ccbbd03607468d27ab7adfb.tar.zst
gsoc2013-evolution-32a0b0afc551143c2ccbbd03607468d27ab7adfb.zip
2007-08-06 mcrha Partial fix for bug #313221
svn path=/trunk/; revision=33960
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/addressbook-migrate.c22
1 files changed, 16 insertions, 6 deletions
diff --git a/addressbook/gui/component/addressbook-migrate.c b/addressbook/gui/component/addressbook-migrate.c
index 2c9d621bb8..58e27b3cd4 100644
--- a/addressbook/gui/component/addressbook-migrate.c
+++ b/addressbook/gui/component/addressbook-migrate.c
@@ -273,10 +273,14 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
EVCardAttributeParam *p = param->data;
if (!strcmp (EVC_TYPE, e_vcard_attribute_param_get_name (p))) {
GList *v = e_vcard_attribute_param_get_values (p);
- if (v && v->data)
+ while (v && v->data) {
if (!strcmp ("VOICE", v->data)
- || !strcmp ("FAX", v->data))
+ || !strcmp ("FAX", v->data)) {
found = TRUE;
+ break;
+ }
+ v = v->next;
+ }
}
}
@@ -297,10 +301,15 @@ migrate_contacts (MigrationContext *context, EBook *old_book, EBook *new_book)
p = param->data;
if (!strcmp (EVC_TYPE, e_vcard_attribute_param_get_name (p))) {
GList *v = e_vcard_attribute_param_get_values (p);
- if (v && v->data && !strcmp ("POSTAL", v->data)) {
- found = TRUE;
- break;
+ while (v && v->data ) {
+ if (!strcmp ("POSTAL", v->data)) {
+ found = TRUE;
+ break;
+ }
+ v = v->next;
}
+ if (found)
+ break;
}
}
@@ -937,11 +946,12 @@ migrate_company_phone_for_local_folders (MigrationContext *context, ESourceGroup
EVCardAttributeParam *p = param->data;
if (!strcmp (EVC_TYPE, e_vcard_attribute_param_get_name (p))) {
GList *v = e_vcard_attribute_param_get_values (p);
- if (v && v->data) {
+ while (v && v->data) {
if (!strcmp ("VOICE", v->data))
found_voice = TRUE;
else if (!strcmp ("WORK", v->data))
found_work = TRUE;
+ v = v->next;
}
}