aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/conduit
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/conduit')
-rw-r--r--addressbook/conduit/address-conduit.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c
index 055a9fdbff..fdac250a10 100644
--- a/addressbook/conduit/address-conduit.c
+++ b/addressbook/conduit/address-conduit.c
@@ -414,21 +414,19 @@ update_record (GnomePilotConduitStandardAbs *conduit,
WARN ("update_record: failed to add card to ebook\n");
} else {
#if 0
- /* XXX toshok: need to figure out exactly what should
- be done here - default to the existing ecard and
- overwrite with information from the pilot? */
- iCalObject *new_obj;
- LOG ("Found");
- printf ("Found\n");
- new_obj = ecard_from_remote_record (conduit, remote, obj);
- obj = new_obj;
+ EBookStatus commit_status;
+
+ ecard = merge_ecard_with_remote_record (ctxt, ecard, remote);
+
+ e_book_commit_card (ctxt->ebook, ecard, status_cb, &commit_status);
+
+ gtk_main (); /* enter sub mainloop */
+
+ if (commit_status != E_BOOK_STATUS_SUCCESS)
+ WARN ("update_record: failed to update card in ebook\n");
#endif
}
-#if 0
- /* update record on server */
- update_ecard (conduit, ecard, ctxt);
-#endif
free_Address(&address);
return 0;