From 56ebfe2f3f1bbcd05c2ac78821edd06c986b40e6 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 21 Oct 2011 13:26:07 -0400 Subject: Adapt to CamelNetworkSettings changes. --- mail/em-account-editor.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'mail/em-account-editor.c') diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index b8510b8600..3236975978 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -2098,18 +2098,18 @@ emae_check_authtype (GtkWidget *w, url_string = (gchar *) e_account_get_string ( account, emae_service_info[service->type].account_uri_key); url = camel_url_new (url_string, NULL); - if (service->settings) - camel_settings_save_to_url (service->settings, url); - url_string = camel_url_to_string (url, 0); - camel_url_free (url); /* to test on actual data, not on previously used */ camel_service = camel_session_add_service ( CAMEL_SESSION (session), uid, - url_string, service->type, &error); + url->protocol, service->type, &error); - g_free (uid); + camel_url_free (url); g_free (url_string); + g_free (uid); + + if (camel_service != NULL && service->settings != NULL) + camel_service_set_settings (camel_service, service->settings); if (editor != NULL) parent = gtk_widget_get_toplevel (editor); -- cgit v1.2.3