aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog5
-rw-r--r--addressbook/conduit/address-conduit.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 52a6d9050b..26ffeff849 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-21 JP Rosevear <jpr@ximian.com>
+
+ * conduit/address-conduit.c (delete_record): Remove
+ deleted records from the pilot map so we don't have dupes in the future
+
2001-01-19 Dan Winship <danw@ximian.com>
* gui/widgets/e-addressbook-view.c (table_right_click):
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;
}