diff options
author | Punit Jain <jpunit@novell.com> | 2010-09-13 12:18:27 +0800 |
---|---|---|
committer | Bharath Acharya <abharath@novell.com> | 2010-09-13 12:18:27 +0800 |
commit | b7abc64e9dda5f8a353af17b0054db04eb54ac90 (patch) | |
tree | 277fe519cd8af6560d019c7907d0e6d8a3f5a42b /plugins | |
parent | fab32c94a18a03f8f665b3946dd2af102a0c4adc (diff) | |
download | gsoc2013-evolution-b7abc64e9dda5f8a353af17b0054db04eb54ac90.tar gsoc2013-evolution-b7abc64e9dda5f8a353af17b0054db04eb54ac90.tar.gz gsoc2013-evolution-b7abc64e9dda5f8a353af17b0054db04eb54ac90.tar.bz2 gsoc2013-evolution-b7abc64e9dda5f8a353af17b0054db04eb54ac90.tar.lz gsoc2013-evolution-b7abc64e9dda5f8a353af17b0054db04eb54ac90.tar.xz gsoc2013-evolution-b7abc64e9dda5f8a353af17b0054db04eb54ac90.tar.zst gsoc2013-evolution-b7abc64e9dda5f8a353af17b0054db04eb54ac90.zip |
Bug #629132 - set_attachments: assertion failed.
[mail-to-task] CRITICAL **: set_attachments: assertion `status.uris != NULL' failed
Uri was actually a path.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mail-to-task/mail-to-task.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/mail-to-task/mail-to-task.c b/plugins/mail-to-task/mail-to-task.c index b62b10f3db..86663cc3b5 100644 --- a/plugins/mail-to-task/mail-to-task.c +++ b/plugins/mail-to-task/mail-to-task.c @@ -306,7 +306,7 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message) const gchar *comp_uid = NULL; const gchar *local_store; gint ii, n_parts; - gchar *uri; + gchar *path; struct { gchar **uris; @@ -323,9 +323,10 @@ set_attachments (ECal *client, ECalComponent *comp, CamelMimeMessage *message) e_cal_component_get_uid (comp, &comp_uid); local_store = e_cal_get_local_attachment_store (client); - 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); /* Create EAttachments from the MIME parts and add them to the * attachment store. */ |