diff options
Diffstat (limited to 'mail/e-mail-attachment-bar.c')
-rw-r--r-- | mail/e-mail-attachment-bar.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/mail/e-mail-attachment-bar.c b/mail/e-mail-attachment-bar.c index 6b50aac304..8461faf0c9 100644 --- a/mail/e-mail-attachment-bar.c +++ b/mail/e-mail-attachment-bar.c @@ -114,10 +114,15 @@ mail_attachment_bar_update_status (EMailAttachmentBar *bar) 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); |