From 74d7a2416b8ed9a61ba0725eebfdd6f37aa5d613 Mon Sep 17 00:00:00 2001 From: Srinivasa Ragavan Date: Fri, 3 Aug 2007 10:47:50 +0000 Subject: ** Fix for bug #451599 svn path=/trunk/; revision=33940 --- widgets/misc/ChangeLog | 7 +++++++ widgets/misc/e-attachment.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'widgets/misc') 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 + + ** 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 ** 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); -- cgit v1.2.3