diff options
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/select-names/e-select-names-text-model.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/addressbook/gui/component/select-names/e-select-names-text-model.c b/addressbook/gui/component/select-names/e-select-names-text-model.c index 0a69137fa5..9c108868b9 100644 --- a/addressbook/gui/component/select-names/e-select-names-text-model.c +++ b/addressbook/gui/component/select-names/e-select-names-text-model.c @@ -760,7 +760,6 @@ static void e_select_names_text_model_activate_obj (ETextModel *model, gint n) { ESelectNamesModel *source = E_SELECT_NAMES_TEXT_MODEL (model)->source; - EContactEditor *contact_editor; ECard *card; gint i; @@ -771,8 +770,16 @@ e_select_names_text_model_activate_obj (ETextModel *model, gint n) g_return_if_fail (card != NULL); /* present read-only contact editor when someone double clicks from here */ - contact_editor = e_addressbook_show_contact_editor (e_card_get_book (card), card, FALSE, FALSE); - e_contact_editor_raise (contact_editor); + if (e_card_evolution_list (card)) { + EContactListEditor *ce; + ce = e_addressbook_show_contact_list_editor (e_card_get_book(card), card, FALSE, FALSE); + e_contact_list_editor_raise (ce); + } + else { + EContactEditor *ce; + ce = e_addressbook_show_contact_editor (e_card_get_book(card), card, FALSE, FALSE); + e_contact_editor_raise (ce); + } } |