Use set_label api for incoming server captions
[modest] / src / hildon2 / modest-address-book.c
index 5baae04..d669b37 100644 (file)
@@ -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 */
 }
@@ -899,7 +902,6 @@ select_contacts_for_name_dialog (const gchar *name)
                                                                                   _AB("addr_ti_dia_select_contacts"),
                                                                                   OSSO_ABOOK_CAPS_EMAIL,
                                                                                   OSSO_ABOOK_CONTACT_ORDER_NAME);
-
                osso_abook_contact_chooser_set_model (OSSO_ABOOK_CONTACT_CHOOSER (contact_dialog),
                                                      contact_model);