From 5bc91a74fecf9f6eecff4281408743ab694e26df Mon Sep 17 00:00:00 2001 From: Hans Petter Jansson Date: Thu, 20 May 2004 00:47:35 +0000 Subject: Check if individual email fields are supported. 2004-05-19 Hans Petter Jansson * gui/contact-editor/e-contact-editor.c (sensitize_email): Check if individual email fields are supported. svn path=/trunk/; revision=25998 --- addressbook/gui/contact-editor/e-contact-editor.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'addressbook/gui') 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); } } -- cgit