diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:17:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:17:07 +0300 |
commit | 84f959b487380827d59236f1582334a0b0684e6b (patch) | |
tree | b1862d6871835ee298c88a1ea6d7c4470080a307 /src/gui/popups | |
parent | 26a3dd63c51b552c5479bcc2f92c994abc4200e2 (diff) | |
download | manaverse-84f959b487380827d59236f1582334a0b0684e6b.tar.gz manaverse-84f959b487380827d59236f1582334a0b0684e6b.tar.bz2 manaverse-84f959b487380827d59236f1582334a0b0684e6b.tar.xz manaverse-84f959b487380827d59236f1582334a0b0684e6b.zip |
Remove "retrieve all-1" popup menu handler.
Diffstat (limited to 'src/gui/popups')
-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 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")); |