pidgin/plugins/gevolution/add_buddy_dialog.c

changeset 27706
ae1893256821
parent 22605
3fae96d9be83
child 29935
d28b5dcc7554
equal deleted inserted replaced
27705:06cdb9c6366f 27706:ae1893256821
232 { 232 {
233 EBookQuery *query; 233 EBookQuery *query;
234 EBook *book; 234 EBook *book;
235 gboolean status; 235 gboolean status;
236 GList *cards, *c; 236 GList *cards, *c;
237 GError *err = NULL;
237 238
238 if (dialog->book != NULL) 239 if (dialog->book != NULL)
239 { 240 {
240 g_object_unref(dialog->book); 241 g_object_unref(dialog->book);
241 dialog->book = NULL; 242 dialog->book = NULL;
248 dialog->contacts = NULL; 249 dialog->contacts = NULL;
249 } 250 }
250 251
251 gtk_list_store_clear(dialog->model); 252 gtk_list_store_clear(dialog->model);
252 253
253 if (!gevo_load_addressbook(uri, &book, NULL)) 254 if (!gevo_load_addressbook(uri, &book, &err))
254 { 255 {
255 purple_debug_error("evolution", 256 purple_debug_error("evolution",
256 "Error retrieving default addressbook\n"); 257 "Error retrieving default addressbook: %s\n", err->message);
258 g_error_free(err);
257 259
258 return; 260 return;
259 } 261 }
260 262
261 query = e_book_query_field_exists(E_CONTACT_FULL_NAME); 263 query = e_book_query_field_exists(E_CONTACT_FULL_NAME);

mercurial