[evolution-data-server/meego-eds] Stop generating FILE AS in e_contact_new_from_vcard



commit 26f4acee8ad4b7be69b891edb10d811a45332f0a
Author: Christophe Dumez <christophe dumez intel com>
Date:   Wed Jun 22 09:59:43 2011 +0300

    Stop generating FILE AS in e_contact_new_from_vcard
    
    We need to disable it otherwise the vCard will get parsed.

 addressbook/libebook/e-contact.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/addressbook/libebook/e-contact.c b/addressbook/libebook/e-contact.c
index 0a08304..e1f8a4a 100644
--- a/addressbook/libebook/e-contact.c
+++ b/addressbook/libebook/e-contact.c
@@ -1215,13 +1215,16 @@ EContact*
 e_contact_new_from_vcard  (const gchar *vcard)
 {
 	EContact *contact;
+#if 0
 	const gchar *file_as;
-
+#endif
 	g_return_val_if_fail (vcard != NULL, NULL);
 
 	contact = g_object_new (E_TYPE_CONTACT, NULL);
 	e_vcard_construct (E_VCARD (contact), vcard);
 
+	/* We need to disable this otherwise the vCard gets parsed */
+#if 0
 	/* Generate a FILE_AS field if needed */
 
 	file_as = e_contact_get_const (contact, E_CONTACT_FILE_AS);
@@ -1257,6 +1260,7 @@ e_contact_new_from_vcard  (const gchar *vcard)
 			g_free (file_as_new);
 		}
 	}
+#endif
 
 	return contact;
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]