diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 15:14:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 15:14:00 +0300 |
commit | f473ddfdd2a576036d57b05640bd91dcced4bdbf (patch) | |
tree | b29925b84e775d0da80534cf7cacf4bf56403296 /src/gui/popups/popupmenu.cpp | |
parent | dff25ba3ef8724b4f26f978df27dec1e337ce23c (diff) | |
download | manaverse-f473ddfdd2a576036d57b05640bd91dcced4bdbf.tar.gz manaverse-f473ddfdd2a576036d57b05640bd91dcced4bdbf.tar.bz2 manaverse-f473ddfdd2a576036d57b05640bd91dcced4bdbf.tar.xz manaverse-f473ddfdd2a576036d57b05640bd91dcced4bdbf.zip |
Remove "store all-1" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-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 2a5642f14..37ad6ea48 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-1" && mItem) - { - inventoryHandler->moveItem2(Inventory::INVENTORY, - mItem->getInvIndex(), mItem->getQuantity() - 1, - Inventory::STORAGE); - } - else if (link == "store all" && mItem) + if (link == "store all" && mItem) { inventoryHandler->moveItem2(Inventory::INVENTORY, mItem->getInvIndex(), mItem->getQuantity(), @@ -1824,7 +1818,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, _("Store half")); // TRANSLATORS: popup menu item // TRANSLATORS: add all except one item amount to storage - mBrowserBox->addRow("store all-1", _("Store all-1")); + mBrowserBox->addRow("/invtostorageall1 'INVINDEX'", + _("Store all-1")); // TRANSLATORS: popup menu item // TRANSLATORS: add all item amount to storage mBrowserBox->addRow("store all", _("Store all")); |