aboutsummaryrefslogtreecommitdiffstats
path: root/calendar
diff options
context:
space:
mode:
Diffstat (limited to 'calendar')
-rw-r--r--calendar/gui/migration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c
index 0f012d5f12..8a68e4ffdc 100644
--- a/calendar/gui/migration.c
+++ b/calendar/gui/migration.c
@@ -317,7 +317,7 @@ migrate_ical_folder_to_source (char *old_path, ESource *new_source, ECalSourceTy
ECal *old_ecal = NULL, *new_ecal = NULL;
ESource *old_source;
ESourceGroup *group;
- char *old_uri = g_strdup_printf ("file://%s", old_path);
+ char *old_uri = g_filename_to_uri (old_path, NULL, NULL);
GError *error = NULL;
gboolean retval = FALSE;