summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-30 15:13:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-30 15:13:26 +0300
commit2dbc66a47f39e8212898af88832afa0522e893b5 (patch)
tree12bbbc937cce72f6438fa870adf3d406012af6a7 /src
parent11e63a9fe8496302dc789c74b2b6ba39a14b568a (diff)
downloadplus-2dbc66a47f39e8212898af88832afa0522e893b5.tar.gz
plus-2dbc66a47f39e8212898af88832afa0522e893b5.tar.bz2
plus-2dbc66a47f39e8212898af88832afa0522e893b5.tar.xz
plus-2dbc66a47f39e8212898af88832afa0522e893b5.zip
In mail view window show item amount.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/mailviewwindow.cpp10
1 files changed, 9 insertions, 1 deletions
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);
}