summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 00:27:41 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 00:27:41 +0300
commit41eff7ceed25a056ea5d9bec0ae11194132a6d08 (patch)
treead72a1ee78b16e20d5f2a121057e189f2272019f /src/gui/popups
parentedb68b472461dd28db18da11f76a90d7f3681a9d (diff)
downloadmv-41eff7ceed25a056ea5d9bec0ae11194132a6d08.tar.gz
mv-41eff7ceed25a056ea5d9bec0ae11194132a6d08.tar.bz2
mv-41eff7ceed25a056ea5d9bec0ae11194132a6d08.tar.xz
mv-41eff7ceed25a056ea5d9bec0ae11194132a6d08.zip
Remove "drop all" popup menu handler.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 3ba4ffbcc..0e357a94f 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -982,11 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "drop all" && mItem)
- {
- PlayerInfo::dropItem(mItem, mItem->getQuantity(), true);
- }
- else if (link == "store" && mItem)
+ if (link == "store" && mItem)
{
ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd,
inventoryWindow, mItem);
@@ -2727,7 +2723,7 @@ void PopupMenu::addUseDrop(const Item *const item, const bool isProtected)
mBrowserBox->addRow("/dropitem 'ITEMID'", _("Drop..."));
// TRANSLATORS: popup menu item
// TRANSLATORS: drop all item amount
- mBrowserBox->addRow("drop all", _("Drop all"));
+ mBrowserBox->addRow("/dropitemall 'ITEMID'", _("Drop all"));
}
else
{