aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/eab-gui-util.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/eab-gui-util.c b/addressbook/gui/widgets/eab-gui-util.c
index 62ca632acd..557699796b 100644
--- a/addressbook/gui/widgets/eab-gui-util.c
+++ b/addressbook/gui/widgets/eab-gui-util.c
@@ -661,8 +661,10 @@ do_delete (gpointer data, gpointer user_data)
{
EBook *book = user_data;
EContact *contact = data;
-
- e_book_async_remove_contact(book, contact, contact_deleted_cb, NULL);
+ const char *id;
+
+ id = e_contact_get_const (contact, E_CONTACT_UID);
+ e_book_remove_contact(book, id, NULL);
}
static void