From 84f959b487380827d59236f1582334a0b0684e6b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 20:17:07 +0300 Subject: Remove "retrieve all-1" popup menu handler. --- src/gui/popups/popupmenu.cpp | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index fb8d334dc..3aaf99c42 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-1" && mItem) - { - inventoryHandler->moveItem2(Inventory::STORAGE, - mItem->getInvIndex(), mItem->getQuantity() - 1, - Inventory::INVENTORY); - } - else if (link == "retrieve all" && mItem) + if (link == "retrieve all" && mItem) { inventoryHandler->moveItem2(Inventory::STORAGE, mItem->getInvIndex(), mItem->getQuantity(), @@ -1793,7 +1787,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, _("Retrieve half")); // TRANSLATORS: popup menu item // TRANSLATORS: get all except one item amount from storage - mBrowserBox->addRow("retrieve all-1", _("Retrieve all-1")); + mBrowserBox->addRow("/storagetoinv 'INVINDEX' -1", + _("Retrieve all-1")); // TRANSLATORS: popup menu item // TRANSLATORS: get all item amount from storage mBrowserBox->addRow("retrieve all", _("Retrieve all")); -- cgit v1.2.3-70-g09d2