diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-04-24 22:58:35 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-04-24 22:58:35 +0800 |
commit | c2119e513bc7482fc0150287af8502a5ff67191a (patch) | |
tree | 9bb636e61736c3d4f993160934a379952309b36d /widgets/misc/e-attachment.c | |
parent | 611ed0f3cfe8cfe29d8ed8e0830905cef96d9082 (diff) | |
download | gsoc2013-evolution-c2119e513bc7482fc0150287af8502a5ff67191a.tar gsoc2013-evolution-c2119e513bc7482fc0150287af8502a5ff67191a.tar.gz gsoc2013-evolution-c2119e513bc7482fc0150287af8502a5ff67191a.tar.bz2 gsoc2013-evolution-c2119e513bc7482fc0150287af8502a5ff67191a.tar.lz gsoc2013-evolution-c2119e513bc7482fc0150287af8502a5ff67191a.tar.xz gsoc2013-evolution-c2119e513bc7482fc0150287af8502a5ff67191a.tar.zst gsoc2013-evolution-c2119e513bc7482fc0150287af8502a5ff67191a.zip |
Fix a couple more attachment issues.
Propagate attachment property changes to the CamelMimePart and emit a
"notify::file-info" signal to refresh the row in the attachment model.
Also, only fall back to showing the attachment's file name if its
description is -empty- (not just NULL).
Diffstat (limited to 'widgets/misc/e-attachment.c')
-rw-r--r-- | widgets/misc/e-attachment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/widgets/misc/e-attachment.c b/widgets/misc/e-attachment.c index ee5446e699..537a3470d7 100644 --- a/widgets/misc/e-attachment.c +++ b/widgets/misc/e-attachment.c @@ -168,7 +168,8 @@ attachment_update_file_info_columns (EAttachment *attachment) display_size = g_format_size_for_display (size); description = e_attachment_get_description (attachment); - description = (description != NULL) ? description : display_name; + if (description == NULL || *description == '\0') + description = display_name; if (size > 0) caption = g_strdup_printf ( |