aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2012-04-13 22:18:47 +0800
committerMilan Crha <mcrha@redhat.com>2012-04-13 22:18:47 +0800
commit5cba7977dceec451ddf65db946aada5e1582567c (patch)
tree00a1a6ec10f533f7e23e20dd5f44988659e689e7 /mail
parentd3c48ad5af1ffe313f5427ab78ef4ddebb38cf72 (diff)
downloadgsoc2013-evolution-5cba7977dceec451ddf65db946aada5e1582567c.tar.gz
gsoc2013-evolution-5cba7977dceec451ddf65db946aada5e1582567c.tar.zst
gsoc2013-evolution-5cba7977dceec451ddf65db946aada5e1582567c.zip
Bug #600860 - Opening IMAP message with large attachment blocks UI
Diffstat (limited to 'mail')
-rw-r--r--mail/em-format-html-display.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/em-format-html-display.c b/mail/em-format-html-display.c
index 013e1ac731..aca7fef8d8 100644
--- a/mail/em-format-html-display.c
+++ b/mail/em-format-html-display.c
@@ -1174,8 +1174,10 @@ efhd_attachment_button (EMFormatHTML *efh,
GFileInfo *fileinfo;
fileinfo = e_attachment_get_file_info (info->attachment);
- g_file_info_set_size (fileinfo, size);
- e_attachment_set_file_info (info->attachment, fileinfo);
+ if (fileinfo) {
+ g_file_info_set_size (fileinfo, size);
+ e_attachment_set_file_info (info->attachment, fileinfo);
+ }
}
widget = e_attachment_button_new (view);