diff options
Diffstat (limited to 'widgets')
-rw-r--r-- | widgets/misc/e-attachment-paned.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/widgets/misc/e-attachment-paned.c b/widgets/misc/e-attachment-paned.c index 8cdfe6c864..519d4070c8 100644 --- a/widgets/misc/e-attachment-paned.c +++ b/widgets/misc/e-attachment-paned.c @@ -142,10 +142,15 @@ attachment_paned_update_status (EAttachmentPaned *paned) total_size = e_attachment_store_get_total_size (store); display_size = g_format_size_for_display (total_size); - markup = g_strdup_printf ( - "<b>%d</b> %s (%s)", num_attachments, ngettext ( - "Attachment", "Attachments", num_attachments), - display_size); + if (total_size > 0) + markup = g_strdup_printf ( + "<b>%d</b> %s (%s)", num_attachments, ngettext ( + "Attachment", "Attachments", num_attachments), + display_size); + else + markup = g_strdup_printf ( + "<b>%d</b> %s", num_attachments, ngettext ( + "Attachment", "Attachments", num_attachments)); gtk_label_set_markup (label, markup); g_free (markup); |