summaryrefslogtreecommitdiff
path: root/src/gui/windows/mailviewwindow.cpp
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/gui/windows/mailviewwindow.cpp
parent11e63a9fe8496302dc789c74b2b6ba39a14b568a (diff)
downloadmv-2dbc66a47f39e8212898af88832afa0522e893b5.tar.gz
mv-2dbc66a47f39e8212898af88832afa0522e893b5.tar.bz2
mv-2dbc66a47f39e8212898af88832afa0522e893b5.tar.xz
mv-2dbc66a47f39e8212898af88832afa0522e893b5.zip
In mail view window show item amount.
Diffstat (limited to 'src/gui/windows/mailviewwindow.cpp')
-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);
}