aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r--mail/mail-config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c
index 39e4f14190..d6773b7fb8 100644
--- a/mail/mail-config.c
+++ b/mail/mail-config.c
@@ -922,7 +922,8 @@ service_page_set_url (MailDialogServicePage *page, MailConfigService *service)
authtype = gtk_object_get_data (GTK_OBJECT (item),
"authtype");
- if (!strcmp (authtype->authproto, url->authmech))
+ if ((!url->authmech && !*authtype->authproto) ||
+ (url->authmech && !strcmp (authtype->authproto, url->authmech))
service_page_item_auth_activate (item, spitem);
gtk_option_menu_set_history (GTK_OPTION_MENU (spitem->auth_optionmenu), i);
}