From 884e62be5bac5d245d2b155950eb4377cd5194f3 Mon Sep 17 00:00:00 2001 From: Sergio Villar Senin Date: Mon, 27 Apr 2009 14:26:34 +0000 Subject: [PATCH] Fixes NB#103840, custom settings not properly set pmo-trunk-r9178 --- src/modest-presets.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modest-presets.c b/src/modest-presets.c index 8649208..1bba4b6 100644 --- a/src/modest-presets.c +++ b/src/modest-presets.c @@ -256,8 +256,12 @@ modest_presets_get_info_server_security (ModestPresets *self, const gchar *provi val = g_key_file_get_string (self->keyfile, provider_id, MODEST_PRESETS_KEY_INCOMING_SECURITY, NULL); - if (val && ((strcmp (val, "1") == 0) || (strcmp (val, "2") == 0))) { + if (val && strcmp (val, "0") == 0) { + protocol_type = MODEST_PROTOCOLS_CONNECTION_TLS; + } else if (val && strcmp (val, "1") == 0) { protocol_type = MODEST_PROTOCOLS_CONNECTION_SSL; + } else if (val && strcmp (val, "2") == 0) { + protocol_type = MODEST_PROTOCOLS_CONNECTION_NONE; } else if (val && (strcmp (val, "tls") == 0)) { protocol_type = MODEST_PROTOCOLS_CONNECTION_TLS; } else if (val && (strcmp (val, "ssl") == 0)) { -- 1.7.9.5