aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@novell.com>2010-12-03 07:55:36 +0800
committerFederico Mena Quintero <federico@novell.com>2010-12-04 07:57:21 +0800
commitdfc12dd9ab60954cd52cb680b5bbb56b8c204d9d (patch)
tree474ee69585397f1dce7d69dbb2c02e9c2dbb27a8
parentce1832ea6c14c24f20993d5afe79999e8f6baa08 (diff)
downloadgsoc2013-evolution-dfc12dd9ab60954cd52cb680b5bbb56b8c204d9d.tar
gsoc2013-evolution-dfc12dd9ab60954cd52cb680b5bbb56b8c204d9d.tar.gz
gsoc2013-evolution-dfc12dd9ab60954cd52cb680b5bbb56b8c204d9d.tar.bz2
gsoc2013-evolution-dfc12dd9ab60954cd52cb680b5bbb56b8c204d9d.tar.lz
gsoc2013-evolution-dfc12dd9ab60954cd52cb680b5bbb56b8c204d9d.tar.xz
gsoc2013-evolution-dfc12dd9ab60954cd52cb680b5bbb56b8c204d9d.tar.zst
gsoc2013-evolution-dfc12dd9ab60954cd52cb680b5bbb56b8c204d9d.zip
Don't set the URL's defaults when the providers have not been refreshed
Signed-off-by: Federico Mena Quintero <federico@novell.com>
-rw-r--r--mail/em-account-editor.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index f2ad70f110..48c564c01f 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1725,18 +1725,20 @@ emae_refresh_providers (EMAccountEditor *emae, EMAccountEditorService *service)
/* find the displayed and set default */
if (i == 0 || (current && strcmp (provider->protocol, current) == 0)) {
+ CamelURL *url;
+
service->provider = provider;
active = i;
- /* we need to set this value on the uri too */
+ url = emae_account_url (emae, info->account_uri_key);
if (current == NULL) {
- CamelURL *url = emae_account_url (emae, info->account_uri_key);
-
+ /* we need to set this value on the uri too */
camel_url_set_protocol (url, provider->protocol);
- set_provider_defaults_on_url (emae, provider, url);
- emae_uri_changed (service, url);
- camel_url_free (url);
}
+
+ set_provider_defaults_on_url (emae, provider, url);
+ emae_uri_changed (service, url);
+ camel_url_free (url);
}
i++;
}
@@ -3470,10 +3472,6 @@ emae_check_complete (EConfig *ec, const gchar *pageid, gpointer data)
camel_url_set_user (url, user);
if (sdata != NULL) {
camel_url_set_protocol (url, sdata->proto);
-
- if (emae->priv->source.provider)
- set_provider_defaults_on_url (emae, emae->priv->source.provider, url);
-
if (sdata->recv_sock && *sdata->recv_sock)
camel_url_set_param (url, "use_ssl", sdata->recv_sock);
else
@@ -3516,10 +3514,6 @@ emae_check_complete (EConfig *ec, const gchar *pageid, gpointer data)
if (sdata != NULL && uri && (url = camel_url_new (uri, NULL)) != NULL) {
refresh = TRUE;
camel_url_set_protocol (url, "smtp");
-
- if (emae->priv->source.provider)
- set_provider_defaults_on_url (emae, emae->priv->source.provider, url);
-
if (sdata->send_sock && *sdata->send_sock)
camel_url_set_param (url, "use_ssl", sdata->send_sock);
else