summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 20:27:51 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 20:27:51 +0300
commitb2043642e62a5fe58c42ee07a25c41b4ef6b67cc (patch)
tree9302308a74f92f5cdcc2fdb4db55c7cbcbe40490 /src
parent84f959b487380827d59236f1582334a0b0684e6b (diff)
downloadplus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.tar.gz
plus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.tar.bz2
plus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.tar.xz
plus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.zip
Remove "retrieve all" popup menu handler.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 3aaf99c42..d384bbcd1 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -982,13 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "retrieve all" && mItem)
- {
- inventoryHandler->moveItem2(Inventory::STORAGE,
- mItem->getInvIndex(), mItem->getQuantity(),
- Inventory::INVENTORY);
- }
- else if (link == "protect item" && mItemId)
+ if (link == "protect item" && mItemId)
{
PlayerInfo::protectItem(mItemId);
}
@@ -1791,7 +1785,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y,
_("Retrieve all-1"));
// TRANSLATORS: popup menu item
// TRANSLATORS: get all item amount from storage
- mBrowserBox->addRow("retrieve all", _("Retrieve all"));
+ mBrowserBox->addRow("/storagetoinv 'INVINDEX' all",
+ _("Retrieve all"));
}
}
addProtection();