diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 15:26:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 15:26:21 +0300 |
commit | bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e (patch) | |
tree | ca1152c576d843bb5af6121217517834cdba45d6 /src/gui | |
parent | 753efae71d14bfcb3b36abb1a1455c1c4bd7e4a8 (diff) | |
download | manaverse-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.tar.gz manaverse-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.tar.bz2 manaverse-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.tar.xz manaverse-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.zip |
Remove "store all" popup menu handler.
Diffstat (limited to 'src/gui')
-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 37ad6ea48..1cd774dbe 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 == "store all" && mItem) - { - inventoryHandler->moveItem2(Inventory::INVENTORY, - mItem->getInvIndex(), mItem->getQuantity(), - Inventory::STORAGE); - } - else if (link == "addtrade" && mItem) + if (link == "addtrade" && mItem) { if (!PlayerInfo::isItemProtected(mItem->getId())) { @@ -1822,7 +1816,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, _("Store all-1")); // TRANSLATORS: popup menu item // TRANSLATORS: add all item amount to storage - mBrowserBox->addRow("store all", _("Store all")); + mBrowserBox->addRow("/invtostorageall 'INVINDEX'", + _("Store all")); } mBrowserBox->addRow("##3---"); } |