summaryrefslogtreecommitdiff
path: root/src/gui/windows/itemamountwindow.cpp
diff options
context:
space:
mode:
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."));