aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-attachment-bar.c
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@novell.com>2005-08-16 11:47:55 +0800
committerSrinivasa Ragavan <sragavan@src.gnome.org>2005-08-16 11:47:55 +0800
commiteb491088f8aabcc369f09fd95c46a5794c575d6f (patch)
tree88e9981291487703a9915644d07dcb7bfba95669 /widgets/misc/e-attachment-bar.c
parente77ae6c0f59b94265a3487eacea32abb1c312ab0 (diff)
downloadgsoc2013-evolution-eb491088f8aabcc369f09fd95c46a5794c575d6f.tar.gz
gsoc2013-evolution-eb491088f8aabcc369f09fd95c46a5794c575d6f.tar.zst
gsoc2013-evolution-eb491088f8aabcc369f09fd95c46a5794c575d6f.zip
Fix for bug #312545
2005-08-16 Srinivasa Ragavan <sragavan@novell.com> * mail/em-format-html-display.c: * widgets/misc/e-attachment*.c: Fix for bug #312545 svn path=/trunk/; revision=30126
Diffstat (limited to 'widgets/misc/e-attachment-bar.c')
-rw-r--r--widgets/misc/e-attachment-bar.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/widgets/misc/e-attachment-bar.c b/widgets/misc/e-attachment-bar.c
index c268724759..76d84a7d8d 100644
--- a/widgets/misc/e-attachment-bar.c
+++ b/widgets/misc/e-attachment-bar.c
@@ -329,8 +329,12 @@ update (EAttachmentBar *bar)
}
desc = camel_mime_part_get_description (attachment->body);
- if (!desc || *desc == '\0')
- desc = camel_mime_part_get_filename (attachment->body);
+ if (!desc || *desc == '\0') {
+ if (attachment->file_name)
+ desc = attachment->file_name;
+ else
+ desc = camel_mime_part_get_filename (attachment->body);
+ }
if (!desc)
desc = _("attachment");