From 2dbc66a47f39e8212898af88832afa0522e893b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Apr 2015 15:13:26 +0300 Subject: In mail view window show item amount. --- src/gui/windows/mailviewwindow.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/mailviewwindow.cpp') diff --git a/src/gui/windows/mailviewwindow.cpp b/src/gui/windows/mailviewwindow.cpp index 8dce1228b..13961dfde 100644 --- a/src/gui/windows/mailviewwindow.cpp +++ b/src/gui/windows/mailviewwindow.cpp @@ -114,7 +114,15 @@ MailViewWindow::MailViewWindow(const MailMessage *const message) : item.getDisplay().image), item.getDyeColorsString(1))); mIcon = new Icon(this, image); - mItemLabel = new Label(this, std::string(_("Item:")).append(" ")); + if (message->itemAmount != 1) + { + mItemLabel = new Label(this, std::string(_("Item:")).append( + " (").append(toString(message->itemAmount)).append(") ")); + } + else + { + mItemLabel = new Label(this, std::string(_("Item:")).append(" ")); + } placer(0, n, mItemLabel); placer(1, n++, mIcon); } -- cgit v1.2.3-60-g2f50