From b2043642e62a5fe58c42ee07a25c41b4ef6b67cc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 20:27:51 +0300 Subject: Remove "retrieve all" popup menu handler. --- src/gui/popups/popupmenu.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') 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(); -- cgit v1.2.3-60-g2f50