diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:15:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:15:06 +0300 |
commit | 26a3dd63c51b552c5479bcc2f92c994abc4200e2 (patch) | |
tree | 6d72e106338f3d5781588af2e3389616da3f7950 | |
parent | fae4c6920d74277cd15821bb7abe41e4351fa119 (diff) | |
download | plus-26a3dd63c51b552c5479bcc2f92c994abc4200e2.tar.gz plus-26a3dd63c51b552c5479bcc2f92c994abc4200e2.tar.bz2 plus-26a3dd63c51b552c5479bcc2f92c994abc4200e2.tar.xz plus-26a3dd63c51b552c5479bcc2f92c994abc4200e2.zip |
Remove "retrieve half" popup menu handler.
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 92645cd40..fb8d334dc 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 half" && mItem) - { - inventoryHandler->moveItem2(Inventory::STORAGE, - mItem->getInvIndex(), mItem->getQuantity() / 2, - Inventory::INVENTORY); - } - else if (link == "retrieve all-1" && mItem) + if (link == "retrieve all-1" && mItem) { inventoryHandler->moveItem2(Inventory::STORAGE, mItem->getInvIndex(), mItem->getQuantity() - 1, @@ -1795,7 +1789,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, } // TRANSLATORS: popup menu item // TRANSLATORS: get half item amount from storage - mBrowserBox->addRow("retrieve half", _("Retrieve half")); + mBrowserBox->addRow("/storagetoinv 'INVINDEX' /", + _("Retrieve half")); // TRANSLATORS: popup menu item // TRANSLATORS: get all except one item amount from storage mBrowserBox->addRow("retrieve all-1", _("Retrieve all-1")); |