[evolution/wip/gsettings] Bug #656723 - Forgets 'Use secure connection' setting during account configuration
- From: Rodrigo Moya <rodrigo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/gsettings] Bug #656723 - Forgets 'Use secure connection' setting during account configuration
- Date: Wed, 14 Sep 2011 12:28:27 +0000 (UTC)
commit 69be5f35e71b8891acbe002c4343529844c34855
Author: Milan Crha <mcrha redhat com>
Date: Wed Aug 17 12:55:38 2011 +0200
Bug #656723 - Forgets 'Use secure connection' setting during account configuration
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 ccb42be..946e93b 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]