{
GtkWidget *dialog = NULL;
const gchar *vcard = NULL;
+ McAccount *account = NULL;
if (account_id) {
vcard = osso_abook_account_manager_get_vcard_field (NULL, account_id);
+ account = osso_abook_account_manager_lookup_by_name (NULL, account_id);
}
- if (vcard) {
+ if (vcard && account) {
EVCardAttribute *attribute = e_vcard_attribute_new (NULL, vcard);
e_vcard_attribute_add_value (attribute, remote_id);
(NULL,
NULL, /*EBook *book,*/
attribute,
- NULL /*McAccount *account*/);
+ account);
g_signal_connect (dialog,
"response",
G_CALLBACK (gtk_widget_destroy),