aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cal-config-google/evolution-cal-config-google.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cal-config-google/evolution-cal-config-google.c')
-rw-r--r--modules/cal-config-google/evolution-cal-config-google.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/cal-config-google/evolution-cal-config-google.c b/modules/cal-config-google/evolution-cal-config-google.c
index 97b4c7eeea..9f6310b036 100644
--- a/modules/cal-config-google/evolution-cal-config-google.c
+++ b/modules/cal-config-google/evolution-cal-config-google.c
@@ -123,6 +123,14 @@ cal_config_google_commit_changes (ESourceConfigBackend *backend,
soup_uri = e_source_webdav_dup_soup_uri (webdav_extension);
+ if (!soup_uri->path || !*soup_uri->path || g_strcmp0 (soup_uri->path, "/") == 0) {
+ ESourceAuthentication *authentication_extension
+ = e_source_get_extension (scratch_source, E_SOURCE_EXTENSION_AUTHENTICATION);
+
+ e_google_chooser_construct_default_uri (soup_uri,
+ e_source_authentication_get_user (authentication_extension));
+ }
+
/* The host name is fixed, obviously. */
soup_uri_set_host (soup_uri, "www.google.com");