aboutsummaryrefslogtreecommitdiffstats
path: root/composer/e-msg-composer-attachment-bar.c
diff options
context:
space:
mode:
authorIain Holmes <iain@helixcode.com>2000-10-02 08:42:10 +0800
committerIain Holmes <iain@src.gnome.org>2000-10-02 08:42:10 +0800
commit3026d9fc5c8839886649d67bd6313b027a1f08a1 (patch)
treed7b259cd88ea0d90630548b5fd6aa1a24c1e57ae /composer/e-msg-composer-attachment-bar.c
parent2e03d9ba66e36940b3f3f4181271508965bf9ad2 (diff)
downloadgsoc2013-evolution-3026d9fc5c8839886649d67bd6313b027a1f08a1.tar
gsoc2013-evolution-3026d9fc5c8839886649d67bd6313b027a1f08a1.tar.gz
gsoc2013-evolution-3026d9fc5c8839886649d67bd6313b027a1f08a1.tar.bz2
gsoc2013-evolution-3026d9fc5c8839886649d67bd6313b027a1f08a1.tar.lz
gsoc2013-evolution-3026d9fc5c8839886649d67bd6313b027a1f08a1.tar.xz
gsoc2013-evolution-3026d9fc5c8839886649d67bd6313b027a1f08a1.tar.zst
gsoc2013-evolution-3026d9fc5c8839886649d67bd6313b027a1f08a1.zip
If the description of an attachment is a blank string, revert to
2000-10-02 Iain Holmes <iain@helixcode.com> * e-msg-composer-attachment-bar.c: If the description of an attachment is a blank string, revert to displaying the filename. 2000-10-01 Iain Holmes <iain@helixcode.com> * e-icon-list.c: If you try to add an icon from a file that doesn't exist put a "Broken icon" image. * bad-icon.xpm: Broken icon image. svn path=/trunk/; revision=5652
Diffstat (limited to 'composer/e-msg-composer-attachment-bar.c')
-rw-r--r--composer/e-msg-composer-attachment-bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/composer/e-msg-composer-attachment-bar.c b/composer/e-msg-composer-attachment-bar.c
index 9dd4cf6a49..3743c310af 100644
--- a/composer/e-msg-composer-attachment-bar.c
+++ b/composer/e-msg-composer-attachment-bar.c
@@ -290,7 +290,7 @@ update (EMsgComposerAttachmentBar *bar)
}
desc = camel_mime_part_get_description (attachment->body);
- if (!desc)
+ if (!desc || *desc == '\0')
desc = camel_mime_part_get_filename (attachment->body);
if (!desc)
desc = "attachment";