aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-list-editor/e-contact-list-editor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/addressbook/gui/contact-list-editor/e-contact-list-editor.c b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
index 831b51eb27..dc2edd281b 100644
--- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c
+++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c
@@ -210,6 +210,7 @@ contact_list_editor_book_loaded (EBook *new_book,
EContactListEditor *editor)
{
EContactListEditorPrivate *priv = editor->priv;
+ EContactStore *contact_store;
ENameSelectorEntry *entry;
priv->load_source_id = 0;
@@ -227,7 +228,8 @@ contact_list_editor_book_loaded (EBook *new_book,
}
entry = E_NAME_SELECTOR_ENTRY (WIDGET (EMAIL_ENTRY));
- e_contact_store_add_book (entry->contact_store, new_book);
+ contact_store = e_name_selector_entry_peek_contact_store (entry);
+ e_contact_store_add_book (contact_store, new_book);
e_contact_list_editor_set_book (editor, new_book);
g_object_unref (new_book);
}