aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mail/component-factory.c b/mail/component-factory.c
index e2778ffc8d..1f95caa077 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -547,9 +547,11 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des
switch (type) {
case ACCEPTED_DND_TYPE_TEXT_URI_LIST:
- folder = mail_tool_uri_to_folder (physical_uri, 0, NULL);
- if (!folder)
+ folder = mail_tool_uri_to_folder (physical_uri, 0, &ex);
+ if (!folder) {
+ camel_exception_clear (&ex);
return FALSE;
+ }
tmp = g_strndup (data->bytes._buffer, data->bytes._length);
urls = g_strsplit (tmp, "\n", 0);
@@ -665,9 +667,9 @@ got_folder (char *uri, CamelFolder *folder, void *data)
{
CamelFolder **fp = data;
+ *fp = folder;
+
if (folder) {
- *fp = folder;
-
camel_object_ref (CAMEL_OBJECT (folder));
/* emit a changed event, this is a little hack so that the folderinfo cache