summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 20:13:29 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 20:13:29 +0300
commitfae4c6920d74277cd15821bb7abe41e4351fa119 (patch)
treead73ea4e531ec746cc59789fcbc6d092887cb71d /src
parent6988830341bb983cc6c31ce708585db97a011ee2 (diff)
downloadmv-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.gz
mv-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.bz2
mv-fae4c6920d74277cd15821bb7abe41e4351fa119.tar.xz
mv-fae4c6920d74277cd15821bb7abe41e4351fa119.zip
Remove "retrieve 10" popup menu handler.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 4345dfc42..92645cd40 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -982,16 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "retrieve 10" && mItem)
- {
- int cnt = 10;
- if (cnt > mItem->getQuantity())
- cnt = mItem->getQuantity();
- inventoryHandler->moveItem2(Inventory::STORAGE,
- mItem->getInvIndex(), cnt,
- Inventory::INVENTORY);
- }
- else if (link == "retrieve half" && mItem)
+ if (link == "retrieve half" && mItem)
{
inventoryHandler->moveItem2(Inventory::STORAGE,
mItem->getInvIndex(), mItem->getQuantity() / 2,
@@ -1799,7 +1790,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y,
{
// TRANSLATORS: popup menu item
// TRANSLATORS: get 10 item amount from storage
- mBrowserBox->addRow("retrieve 10", _("Retrieve 10"));
+ mBrowserBox->addRow("/storagetoinv 'INVINDEX' 10",
+ _("Retrieve 10"));
}
// TRANSLATORS: popup menu item
// TRANSLATORS: get half item amount from storage