aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui')
-rw-r--r--addressbook/gui/contact-editor/e-contact-editor.c4
1 files changed, 4 insertions, 0 deletions
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);
}
}