From 4bb980a70936337075f7ceaf47313aaf56c2718a Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Wed, 14 Jan 2009 11:53:48 +0000 Subject: [PATCH] Add contact if it's new pmo-trunk-r7144 --- src/hildon2/modest-address-book.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hildon2/modest-address-book.c b/src/hildon2/modest-address-book.c index 7377e4e..d669b37 100644 --- a/src/hildon2/modest-address-book.c +++ b/src/hildon2/modest-address-book.c @@ -375,7 +375,10 @@ commit_contact(EContact * contact, gboolean is_new) if (OSSO_ABOOK_IS_CONTACT (contact)) { osso_abook_contact_commit(OSSO_ABOOK_CONTACT(contact), is_new, book, NULL); } else { - e_book_commit_contact (book, contact, NULL); + if (is_new) + e_book_add_contact (book, contact, NULL); + else + e_book_commit_contact (book, contact, NULL); } #endif /* MODEST_ABOOK_API < 2 */ } -- 1.7.9.5