aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/component/select-names/e-select-names-popup.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-popup.c b/addressbook/gui/component/select-names/e-select-names-popup.c
index ef73d79e8a..69754f1976 100644
--- a/addressbook/gui/component/select-names/e-select-names-popup.c
+++ b/addressbook/gui/component/select-names/e-select-names-popup.c
@@ -99,12 +99,19 @@ make_contact_editor_cb (EBook *book, gpointer user_data)
{
if (book) {
EDestination *dest = E_DESTINATION (user_data);
- EContactEditor *ce;
ECard *card;
card = (ECard *) e_destination_get_card (dest);
- ce = e_addressbook_show_contact_editor (book, card, FALSE, TRUE);
- e_contact_editor_raise (ce);
+ if (e_card_evolution_list (card)) {
+ EContactListEditor *ce;
+ ce = e_addressbook_show_contact_list_editor (book, card, FALSE, TRUE);
+ e_contact_list_editor_raise (ce);
+ }
+ else {
+ EContactEditor *ce;
+ ce = e_addressbook_show_contact_editor (book, card, FALSE, TRUE);
+ e_contact_editor_raise (ce);
+ }
gtk_object_unref (GTK_OBJECT (dest));
}
}