From 7c1a7df115abbfe389d224c9adc3261c3eb771da Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 13 Apr 2012 16:18:01 +0200 Subject: Bug #600860 - Opening IMAP message with large attachment blocks UI --- modules/calendar/e-cal-attachment-handler.c | 4 ++++ modules/mail/e-mail-attachment-handler.c | 5 +++++ 2 files changed, 9 insertions(+) (limited to 'modules') diff --git a/modules/calendar/e-cal-attachment-handler.c b/modules/calendar/e-cal-attachment-handler.c index 604bc737da..3b18f426aa 100644 --- a/modules/calendar/e-cal-attachment-handler.c +++ b/modules/calendar/e-cal-attachment-handler.c @@ -75,6 +75,10 @@ attachment_handler_get_component (EAttachment *attachment) if (component != NULL) return component; + if (e_attachment_get_loading (attachment) || + e_attachment_get_saving (attachment)) + return NULL; + mime_part = e_attachment_get_mime_part (attachment); if (!CAMEL_IS_MIME_PART (mime_part)) return NULL; diff --git a/modules/mail/e-mail-attachment-handler.c b/modules/mail/e-mail-attachment-handler.c index 00f416c564..b3e14328e4 100644 --- a/modules/mail/e-mail-attachment-handler.c +++ b/modules/mail/e-mail-attachment-handler.c @@ -444,6 +444,11 @@ mail_attachment_handler_update_actions (EAttachmentView *view, goto exit; attachment = E_ATTACHMENT (selected->data); + + if (e_attachment_get_loading (attachment) || + e_attachment_get_saving (attachment)) + goto exit; + mime_part = e_attachment_get_mime_part (attachment); if (!CAMEL_IS_MIME_PART (mime_part)) -- cgit