From 4b0f30b1e1879cee6d65394d826bba21eca6c40b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Apr 2015 01:36:13 +0300 Subject: Allos send items by mail. --- src/gui/windows/itemamountwindow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/windows/itemamountwindow.cpp') 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.")); -- cgit v1.2.3-70-g09d2