diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-29 01:36:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-29 14:10:28 +0300 |
commit | 4b0f30b1e1879cee6d65394d826bba21eca6c40b (patch) | |
tree | 14d16cadd1b8fe20bc0bfa2ea8974ff46b00b496 /src/gui/windows/itemamountwindow.cpp | |
parent | 13920702c8a5e5b093d9a3ef5a5e8b254931915b (diff) | |
download | manaverse-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.gz manaverse-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.bz2 manaverse-4b0f30b1e1879cee6d65394d826bba21eca6c40b.tar.xz manaverse-4b0f30b1e1879cee6d65394d826bba21eca6c40b.zip |
Allos send items by mail.
Diffstat (limited to 'src/gui/windows/itemamountwindow.cpp')
-rw-r--r-- | src/gui/windows/itemamountwindow.cpp | 9 |
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.")); |