aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-02-28 19:29:52 +0800
committerMilan Crha <mcrha@redhat.com>2012-02-28 19:29:52 +0800
commit16d571edc3e32915244071b9616f3dace8bff6d4 (patch)
tree51a5eed80445774093c839faab451e4b830bdb0d /mail
parent6003bc88b821d94408415ba2fb305fc011ccd568 (diff)
downloadgsoc2013-evolution-16d571edc3e32915244071b9616f3dace8bff6d4.tar
gsoc2013-evolution-16d571edc3e32915244071b9616f3dace8bff6d4.tar.gz
gsoc2013-evolution-16d571edc3e32915244071b9616f3dace8bff6d4.tar.bz2
gsoc2013-evolution-16d571edc3e32915244071b9616f3dace8bff6d4.tar.lz
gsoc2013-evolution-16d571edc3e32915244071b9616f3dace8bff6d4.tar.xz
gsoc2013-evolution-16d571edc3e32915244071b9616f3dace8bff6d4.tar.zst
gsoc2013-evolution-16d571edc3e32915244071b9616f3dace8bff6d4.zip
Bug #669294 - Settings of 'sending email' tab is not remembered
Diffstat (limited to 'mail')
-rw-r--r--mail/em-account-editor.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index a82d0899df..3e783bb35a 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -2687,21 +2687,26 @@ emae_setup_service (EMAccountEditor *emae,
GtkBuilder *builder)
{
struct _service_info *info = &emae_service_info[service->type];
+ gboolean requires_auth;
CamelProvider *provider = NULL;
CamelURL *url;
+ url = emae_account_url (emae, info->account_uri_key);
+
if (!service->protocol) {
/* GtkComboBox internalizes ID strings, which for the provider
* combo box are protocol names. So we'll do the same here. */
- url = emae_account_url (emae, info->account_uri_key);
if (url != NULL && url->protocol != NULL)
service->protocol = g_intern_string (url->protocol);
- camel_url_free (url);
if (!service->protocol)
service->protocol = "none";
}
+ requires_auth = url && url->authmech != NULL;
+
+ camel_url_free (url);
+
if (service->protocol != NULL)
provider = camel_provider_get (service->protocol, NULL);
@@ -2774,6 +2779,7 @@ emae_setup_service (EMAccountEditor *emae,
G_BINDING_SYNC_CREATE);
if (service->needs_auth != NULL) {
+ g_object_set (emae, "store-requires-auth", requires_auth, NULL);
g_object_bind_property (
emae, "store-requires-auth",
service->needs_auth, "active",
@@ -2839,6 +2845,7 @@ emae_setup_service (EMAccountEditor *emae,
G_BINDING_SYNC_CREATE);
if (service->needs_auth != NULL) {
+ g_object_set (emae, "transport-requires-auth", requires_auth, NULL);
g_object_bind_property (
emae, "transport-requires-auth",
service->needs_auth, "active",