diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-30 15:13:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-30 15:13:26 +0300 |
commit | 2dbc66a47f39e8212898af88832afa0522e893b5 (patch) | |
tree | 12bbbc937cce72f6438fa870adf3d406012af6a7 | |
parent | 11e63a9fe8496302dc789c74b2b6ba39a14b568a (diff) | |
download | manaverse-2dbc66a47f39e8212898af88832afa0522e893b5.tar.gz manaverse-2dbc66a47f39e8212898af88832afa0522e893b5.tar.bz2 manaverse-2dbc66a47f39e8212898af88832afa0522e893b5.tar.xz manaverse-2dbc66a47f39e8212898af88832afa0522e893b5.zip |
In mail view window show item amount.
-rw-r--r-- | src/gui/windows/mailviewwindow.cpp | 10 |
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); } |