summaryrefslogtreecommitdiff
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog7
-rw-r--r--addressbook/libebook/e-vcard.c4
2 files changed, 11 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 6181de1c0..ebbfd2eb7 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,5 +1,12 @@
2004-02-02 Chris Toshok <toshok@ximian.com>
+ * libebook/e-vcard.c (e_vcard_attribute_remove_params): clear
+ attr->encoding_set and attr->encoding, since that is just cached
+ information from the attribute parameters. Fixes a spurious
+ g_warning.
+
+2004-02-02 Chris Toshok <toshok@ximian.com>
+
* libebook/e-vcard.c (e_vcard_attribute_remove_values): make sure
to set attr->decoded_values to NULL as well. fixes oddness when
overwriting the PHOTO attribute.
diff --git a/addressbook/libebook/e-vcard.c b/addressbook/libebook/e-vcard.c
index e922524cd..d45290503 100644
--- a/addressbook/libebook/e-vcard.c
+++ b/addressbook/libebook/e-vcard.c
@@ -1011,6 +1011,10 @@ e_vcard_attribute_remove_params (EVCardAttribute *attr)
g_list_foreach (attr->params, (GFunc)e_vcard_attribute_param_free, NULL);
g_list_free (attr->params);
attr->params = NULL;
+
+ /* also remove the cached encoding on this attribute */
+ attr->encoding_set = FALSE;
+ attr->encoding = EVC_ENCODING_RAW;
}
EVCardAttributeParam*