aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/ChangeLog8
-rw-r--r--addressbook/gui/component/select-names/e-select-names-text-model.c13
2 files changed, 18 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index c1b4af086e..dca705bfef 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,11 @@
+2002-09-04 Chris Toshok <toshok@ximian.com>
+
+ [ Fixes #29904 ]
+ * gui/component/select-names/e-select-names-text-model.c
+ (e_select_names_text_model_activate_obj): we need to activate
+ either a contact list editor or contact editor depending on if
+ it's a list (this screams for a utility function.)
+
2002-09-04 Dan Winship <danw@ximian.com>
* gui/component/addressbook-storage.c
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);
+ }
}