diff options
-rw-r--r-- | addressbook/ChangeLog | 5 | ||||
-rw-r--r-- | addressbook/gui/contact-editor/e-contact-editor.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 48f41d672e..63b9ef4885 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,5 +1,10 @@ 2004-05-19 Hans Petter Jansson <hpj@ximian.com> + * gui/contact-editor/e-contact-editor.c (sensitize_email): Check + if individual email fields are supported. + +2004-05-19 Hans Petter Jansson <hpj@ximian.com> + * gui/contact-editor/e-contact-editor.c (extract_simple_field): Remove debug output. (real_save_contact): Separate out actual save logic from diff --git a/addressbook/gui/contact-editor/e-contact-editor.c b/addressbook/gui/contact-editor/e-contact-editor.c index 7d2df033fa..1e9b3adb99 100644 --- a/addressbook/gui/contact-editor/e-contact-editor.c +++ b/addressbook/gui/contact-editor/e-contact-editor.c @@ -975,6 +975,10 @@ sensitize_email (EContactEditor *editor) if (!editor->target_editable) enabled = FALSE; + if (E_CONTACT_FIRST_EMAIL_ID + i - 1 <= E_CONTACT_LAST_EMAIL_ID && + !is_field_supported (editor, E_CONTACT_FIRST_EMAIL_ID + i - 1)) + enabled = FALSE; + sensitize_email_record (editor, i, enabled); } } |