aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/backend
diff options
context:
space:
mode:
authorJP Rosevear <jpr@helixcode.com>2000-12-05 23:26:57 +0800
committerJP Rosevear <jpr@src.gnome.org>2000-12-05 23:26:57 +0800
commitcc8915f5dda99c518055118a83d4000b5a9ed608 (patch)
treeaa5bd1b1761ad8dded6798c08f94605b539a3a10 /addressbook/backend
parente57a50f5329105e8b5e6bf4497c2e09079012a0d (diff)
downloadgsoc2013-evolution-cc8915f5dda99c518055118a83d4000b5a9ed608.tar
gsoc2013-evolution-cc8915f5dda99c518055118a83d4000b5a9ed608.tar.gz
gsoc2013-evolution-cc8915f5dda99c518055118a83d4000b5a9ed608.tar.bz2
gsoc2013-evolution-cc8915f5dda99c518055118a83d4000b5a9ed608.tar.lz
gsoc2013-evolution-cc8915f5dda99c518055118a83d4000b5a9ed608.tar.xz
gsoc2013-evolution-cc8915f5dda99c518055118a83d4000b5a9ed608.tar.zst
gsoc2013-evolution-cc8915f5dda99c518055118a83d4000b5a9ed608.zip
Create an empty vcard with the appropriate id for deleted cards
2000-12-05 JP Rosevear <jpr@helixcode.com> * backend/pas/pas-backend-file.c (pas_backend_file_changes_foreach_key): Create an empty vcard with the appropriate id for deleted cards * conduit/address-conduit.c (ecard_from_remote_record): Ensure the address fields are added sensibly svn path=/trunk/; revision=6793
Diffstat (limited to 'addressbook/backend')
-rw-r--r--addressbook/backend/pas/pas-backend-file.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/addressbook/backend/pas/pas-backend-file.c b/addressbook/backend/pas/pas-backend-file.c
index 2ff9d1164e..31004e596e 100644
--- a/addressbook/backend/pas/pas-backend-file.c
+++ b/addressbook/backend/pas/pas-backend-file.c
@@ -548,10 +548,13 @@ pas_backend_file_changes_foreach_key (const char *key, gpointer user_data)
db_error = db->get (db, &id_dbt, &vcard_dbt, 0);
if (db_error == 1) {
+ ECard *ecard;
char *id = id_dbt.data;
- char *vcard_string = vcard_dbt.data;
-
- ctx->del_cards = g_list_append (ctx->del_cards, strdup(vcard_string));
+
+ ecard = e_card_new ("");
+ e_card_set_id (ecard, id);
+
+ ctx->del_cards = g_list_append (ctx->del_cards, e_card_get_vcard (ecard));
ctx->del_ids = g_list_append (ctx->del_ids, strdup(id));
}
}