[evolution] Bug #629132 - set_attachments: assertion failed.
- From: Bharath Acharya <abharath src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #629132 - set_attachments: assertion failed.
- Date: Mon, 13 Sep 2010 04:20:24 +0000 (UTC)
commit b7abc64e9dda5f8a353af17b0054db04eb54ac90
Author: Punit Jain <jpunit novell com>
Date: Mon Sep 13 09:48:27 2010 +0530
Bug #629132 - set_attachments: assertion failed.
[mail-to-task] CRITICAL **: set_attachments: assertion `status.uris != NULL' failed
Uri was actually a path.
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 b62b10f..86663cc 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. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]