summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 15:04:26 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 15:04:26 +0300
commitf5d2d18e9d965e8341ee806293c4d5eb4963a019 (patch)
treebe88c978d7ed54c74b021c20b499a40659b2c440 /src/gui/popups
parentb002d846243676990503aa0fa7c220e8a8e66de2 (diff)
downloadmanaplus-f5d2d18e9d965e8341ee806293c4d5eb4963a019.tar.gz
manaplus-f5d2d18e9d965e8341ee806293c4d5eb4963a019.tar.bz2
manaplus-f5d2d18e9d965e8341ee806293c4d5eb4963a019.tar.xz
manaplus-f5d2d18e9d965e8341ee806293c4d5eb4963a019.zip
Remove "store half" popup menu handler.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index dc63de333..2a5642f14 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 half" && mItem)
- {
- inventoryHandler->moveItem2(Inventory::INVENTORY,
- mItem->getInvIndex(), mItem->getQuantity() / 2,
- Inventory::STORAGE);
- }
- else if (link == "store all-1" && mItem)
+ if (link == "store all-1" && mItem)
{
inventoryHandler->moveItem2(Inventory::INVENTORY,
mItem->getInvIndex(), mItem->getQuantity() - 1,
@@ -1826,7 +1820,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y,
}
// TRANSLATORS: popup menu item
// TRANSLATORS: add half item amount to storage
- mBrowserBox->addRow("store half", _("Store half"));
+ mBrowserBox->addRow("/invtostoragehalf 'INVINDEX'",
+ _("Store half"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add all except one item amount to storage
mBrowserBox->addRow("store all-1", _("Store all-1"));