From d219c9c769d8f53ebba08d3cc209f99dca0880bd Mon Sep 17 00:00:00 2001 From: Devashish Sharma Date: Fri, 16 Jun 2006 06:18:41 +0000 Subject: Fix for Bug #317511 svn path=/trunk/; revision=32158 --- addressbook/gui/contact-list-editor/e-contact-list-editor.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/contact-list-editor') 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 21dd8da9e7..5674ffb7db 100644 --- a/addressbook/gui/contact-list-editor/e-contact-list-editor.c +++ b/addressbook/gui/contact-list-editor/e-contact-list-editor.c @@ -484,7 +484,11 @@ close_cb (GtkWidget *widget, EContactListEditor *cle) static void save_and_close_cb (GtkWidget *widget, EContactListEditor *cle) { - save_contact (cle, TRUE); + EABEditor *editor = EAB_EDITOR (cle); + if (! (cle->editable && cle->allows_contact_lists)) + eab_editor_close(editor); + else + save_contact (cle, TRUE); } static void @@ -903,7 +907,8 @@ set_editable (EContactListEditor *editor) gtk_widget_set_sensitive (editor->add_button, editor->editable && editor->allows_contact_lists); gtk_widget_set_sensitive (editor->remove_button, editor->editable && editor->allows_contact_lists); gtk_widget_set_sensitive (editor->select_button, editor->editable && editor->allows_contact_lists); - gtk_widget_set_sensitive (editor->table, editor->editable && editor->allows_contact_lists); + gtk_widget_set_sensitive (editor->cancel_button, editor->editable && editor->allows_contact_lists); + gtk_widget_set_sensitive (editor->visible_addrs_checkbutton, editor->editable && editor->allows_contact_lists); } /* Callback used when the editor is destroyed */ -- cgit v1.2.3