summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 15:26:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 15:26:21 +0300
commitbfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e (patch)
treeca1152c576d843bb5af6121217517834cdba45d6 /src/gui/popups/popupmenu.cpp
parent753efae71d14bfcb3b36abb1a1455c1c4bd7e4a8 (diff)
downloadmv-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.tar.gz
mv-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.tar.bz2
mv-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.tar.xz
mv-bfdbe997d3d27ad447a4422e1ccc45e43cfa8e7e.zip
Remove "store all" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-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 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---");
}