From 680c58a7660020c614690421ff0e37ee55b2c9aa Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 30 Aug 2010 13:58:12 +0200 Subject: Bug #627101 - Not able to attach files in calendar --- calendar/gui/dialogs/comp-editor.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/calendar/gui/dialogs/comp-editor.c b/calendar/gui/dialogs/comp-editor.c index ce01b7da4d..6c5092e508 100644 --- a/calendar/gui/dialogs/comp-editor.c +++ b/calendar/gui/dialogs/comp-editor.c @@ -273,7 +273,7 @@ get_attachment_list (CompEditor *editor) GSList *list = NULL; const gchar *comp_uid = NULL; const gchar *local_store; - gchar *uri; + gchar *path; gint ii; struct { @@ -291,9 +291,9 @@ get_attachment_list (CompEditor *editor) local_store = e_cal_get_local_attachment_store (editor->priv->client); e_cal_component_get_uid (editor->priv->comp, &comp_uid); - uri = g_build_path ("/", local_store, comp_uid, NULL); - destination = g_file_new_for_uri (uri); - g_free (uri); + path = g_build_path ("/", local_store, comp_uid, NULL); + destination = g_file_new_for_path (path); + g_free (path); e_attachment_store_save_async ( store, destination, (GAsyncReadyCallback) -- cgit v1.2.3