summaryrefslogtreecommitdiff
path: root/src/gui/windows/itemamountwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-04-29 01:36:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-04-29 14:10:28 +0300
commit4b0f30b1e1879cee6d65394d826bba21eca6c40b (patch)
tree14d16cadd1b8fe20bc0bfa2ea8974ff46b00b496 /src/gui/windows/itemamountwindow.cpp
parent13920702c8a5e5b093d9a3ef5a5e8b254931915b (diff)
downloadplus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.gz
plus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.bz2
plus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.xz
plus-4b0f30b1e1879cee6d65394d826bba21eca6c40b.zip
Allos send items by mail.
Diffstat (limited to 'src/gui/windows/itemamountwindow.cpp')
-rw-r--r--src/gui/windows/itemamountwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/windows/itemamountwindow.cpp b/src/gui/windows/itemamountwindow.cpp
index 7198d087a..d1cf9138c 100644
--- a/src/gui/windows/itemamountwindow.cpp
+++ b/src/gui/windows/itemamountwindow.cpp
@@ -35,6 +35,7 @@
#include "gui/popups/itempopup.h"
+#include "gui/windows/mailedit.h"
#include "gui/windows/shopwindow.h"
#include "gui/windows/tradewindow.h"
@@ -93,6 +94,10 @@ void ItemAmountWindow::finish(const Item *const item,
if (shopWindow)
shopWindow->addSellItem(item, amount, price);
break;
+ case MailAdd:
+ if (mailEditWindow)
+ mailEditWindow->addItem(item, amount);
+ break;
default:
break;
}
@@ -234,6 +239,10 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent,
// TRANSLATORS: amount window message
setCaption(_("Select amount of items to store."));
break;
+ case MailAdd:
+ // TRANSLATORS: amount window message
+ setCaption(_("Select amount of items to send."));
+ break;
case CartAdd:
// TRANSLATORS: amount window message
setCaption(_("Select amount of items to store to cart."));