diff options
author | Milan Crha <mcrha@redhat.com> | 2011-08-17 18:55:38 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2011-08-17 18:55:38 +0800 |
commit | f54eb4f2eed6d533e043bd9c955a35696d52b7db (patch) | |
tree | d079ad83563b31d6edebb639a6b04006521d61b1 | |
parent | a9749195b034f5cefec575d2da7cc465b2d2ac76 (diff) | |
download | gsoc2013-evolution-f54eb4f2eed6d533e043bd9c955a35696d52b7db.tar.gz gsoc2013-evolution-f54eb4f2eed6d533e043bd9c955a35696d52b7db.tar.zst gsoc2013-evolution-f54eb4f2eed6d533e043bd9c955a35696d52b7db.zip |
Bug #656723 - Forgets 'Use secure connection' setting during account configuration
-rw-r--r-- | mail/em-account-editor.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index ccb42be8e9..946e93b227 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -1533,11 +1533,17 @@ emae_setup_settings (EMAccountEditorService *service) EMConfigTargetAccount *target; CamelServiceClass *class; GType service_type; + CamelURL *url; + + url = emae_account_url ( + service->emae, + emae_service_info[service->type].account_uri_key); /* Destroy any old CamelSettings instances. * Changing CamelProviders invalidates them. */ if (service->settings != NULL) { + camel_settings_save_to_url (service->settings, url); g_object_unref (service->settings); service->settings = NULL; } @@ -1550,19 +1556,12 @@ emae_setup_settings (EMAccountEditorService *service) class = g_type_class_ref (service_type); if (g_type_is_a (class->settings_type, CAMEL_TYPE_SETTINGS)) { - CamelURL *url; - - url = emae_account_url ( - service->emae, - emae_service_info[service->type].account_uri_key); - service->settings = g_object_new (class->settings_type, NULL); camel_settings_load_from_url (service->settings, url); - - camel_url_free (url); } g_type_class_unref (class); + camel_url_free (url); /* If settings implements CamelNetworkSettings, bind the * "security-method" property to the security combo box |