From: Sergio Villar Senin Date: Mon, 30 Jun 2008 15:17:26 +0000 (+0000) Subject: * Fixes NB#86557, changes in auth methods are now properly applied without restarting X-Git-Tag: git_migration_finished~1287 X-Git-Url: http://git.maemo.org/git/?p=modest;a=commitdiff_plain;h=41c33d2e51bef2ae3d750c2848ab13cb4bb8d392 * Fixes NB#86557, changes in auth methods are now properly applied without restarting pmo-trunk-r4830 --- diff --git a/src/modest-tny-account.c b/src/modest-tny-account.c index 948d7b4..2115d69 100644 --- a/src/modest-tny-account.c +++ b/src/modest-tny-account.c @@ -336,8 +336,6 @@ update_tny_account (TnyAccount *tny_account, if (protocol == MODEST_PROTOCOL_STORE_IMAP || protocol == MODEST_PROTOCOL_STORE_POP) auth_mech_name = NULL; - else if (protocol == MODEST_PROTOCOL_TRANSPORT_SMTP) - auth_mech_name = NULL; else auth_mech_name = MODEST_ACCOUNT_AUTH_PLAIN; break; @@ -365,8 +363,7 @@ update_tny_account (TnyAccount *tny_account, break; } - if(auth_mech_name) - tny_account_set_secure_auth_mech (tny_account, auth_mech_name); + tny_account_set_secure_auth_mech (tny_account, auth_mech_name); if (modest_protocol_info_protocol_is_store(protocol) && (protocol == MODEST_PROTOCOL_STORE_IMAP) ) {