From 41eff7ceed25a056ea5d9bec0ae11194132a6d08 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 00:27:41 +0300 Subject: Remove "drop all" popup menu handler. --- src/gui/popups/popupmenu.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/gui') 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 { -- cgit v1.2.3-70-g09d2