aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-03 18:47:50 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2007-08-03 18:47:50 +0800
commit74d7a2416b8ed9a61ba0725eebfdd6f37aa5d613 (patch)
treef43cf0f97ae2ebd58cf4fe2092a6be8881d28f3b
parent6e57758712d38aa1aa0b5a5063758d3085d6b97b (diff)
downloadgsoc2013-evolution-74d7a2416b8ed9a61ba0725eebfdd6f37aa5d613.tar.gz
gsoc2013-evolution-74d7a2416b8ed9a61ba0725eebfdd6f37aa5d613.tar.zst
gsoc2013-evolution-74d7a2416b8ed9a61ba0725eebfdd6f37aa5d613.zip
** Fix for bug #451599
svn path=/trunk/; revision=33940
-rw-r--r--widgets/misc/ChangeLog7
-rw-r--r--widgets/misc/e-attachment.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 5e7a5a06f7..f0baf734be 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,10 @@
+2007-08-03 Srinivasa Ragavan <sragavan@novell.com>
+
+ ** Fix for bug #451599
+
+ * e-attachment.c: (async_progress_update_cb): Timing of setting the
+ attachment is downloaded has to be after creating the attachment.
+
2007-08-03 Milan Crha <mcrha@redhat.com>
** Fix for bug #331729
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c
index 705b5bb2c8..19503c5ea9 100644
--- a/widgets/misc/e-attachment.c
+++ b/widgets/misc/e-attachment.c
@@ -339,11 +339,11 @@ async_progress_update_cb (GnomeVFSAsyncHandle *handle,
if (!info->file_size)
goto error;
- download_info->attachment->is_available_local = TRUE;
download_info->attachment->handle = NULL;
camel_exception_init (&ex);
e_attachment_build_remote_file (download_info->file_name, download_info->attachment, "attachment", &ex);
download_info->attachment->percentage = -1;
+ download_info->attachment->is_available_local = TRUE;
g_signal_emit (download_info->attachment, signals[UPDATE], 0);
g_free (download_info->file_name);
g_free (download_info);