summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 23:22:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 23:22:39 +0300
commitedb68b472461dd28db18da11f76a90d7f3681a9d (patch)
tree5deacf67eb81ae05e713e91ee8fcc590afb8ca08 /src/gui/popups
parent4825eb0b1c940f17925eb70fc0155abd4443d4f2 (diff)
downloadplus-edb68b472461dd28db18da11f76a90d7f3681a9d.tar.gz
plus-edb68b472461dd28db18da11f76a90d7f3681a9d.tar.bz2
plus-edb68b472461dd28db18da11f76a90d7f3681a9d.tar.xz
plus-edb68b472461dd28db18da11f76a90d7f3681a9d.zip
Remove "drop" popup menu handler.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 774728748..3ba4ffbcc 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -982,15 +982,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "drop" && mItem)
- {
- if (!PlayerInfo::isItemProtected(mItem->getId()))
- {
- ItemAmountWindow::showWindow(ItemAmountWindow::ItemDrop,
- inventoryWindow, mItem);
- }
- }
- else if (link == "drop all" && mItem)
+ if (link == "drop all" && mItem)
{
PlayerInfo::dropItem(mItem, mItem->getQuantity(), true);
}
@@ -2732,7 +2724,7 @@ void PopupMenu::addUseDrop(const Item *const item, const bool isProtected)
{
// TRANSLATORS: popup menu item
// TRANSLATORS: drop item
- mBrowserBox->addRow("drop", _("Drop..."));
+ mBrowserBox->addRow("/dropitem 'ITEMID'", _("Drop..."));
// TRANSLATORS: popup menu item
// TRANSLATORS: drop all item amount
mBrowserBox->addRow("drop all", _("Drop all"));
@@ -2741,7 +2733,7 @@ void PopupMenu::addUseDrop(const Item *const item, const bool isProtected)
{
// TRANSLATORS: popup menu item
// TRANSLATORS: drop item
- mBrowserBox->addRow("drop", _("Drop"));
+ mBrowserBox->addRow("/dropitem 'ITEMID'", _("Drop"));
}
}
}