From 7abbd4b41b93efb3791f5498a191ff99ae8361e0 Mon Sep 17 00:00:00 2001 From: JP Rosevear Date: Mon, 22 Jan 2001 20:09:19 +0000 Subject: Remove deleted records from the pilot map so we don't have dupes in the 001-01-21 JP Rosevear * conduit/address-conduit.c (delete_record): Remove deleted records from the pilot map so we don't have dupes in the future svn path=/trunk/; revision=7720 --- addressbook/conduit/address-conduit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'addressbook/conduit/address-conduit.c') diff --git a/addressbook/conduit/address-conduit.c b/addressbook/conduit/address-conduit.c index ec0856bc5a..aea9809732 100644 --- a/addressbook/conduit/address-conduit.c +++ b/addressbook/conduit/address-conduit.c @@ -973,13 +973,14 @@ delete_record (GnomePilotConduitSyncAbs *conduit, LOG ("delete_record: delete %s\n", print_local (local)); + e_pilot_map_remove_by_uid (ctxt->map, local->ecard->id); e_book_remove_card_by_id (ctxt->ebook, local->ecard->id, status_cb, &commit_status); gtk_main (); /* enter sub mainloop */ if (commit_status != E_BOOK_STATUS_SUCCESS && commit_status != E_BOOK_STATUS_CARD_NOT_FOUND) WARN ("delete_record: failed to delete card in ebook\n"); - + return retval; } -- cgit