diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-12 23:22:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-12 23:22:39 +0300 |
commit | edb68b472461dd28db18da11f76a90d7f3681a9d (patch) | |
tree | 5deacf67eb81ae05e713e91ee8fcc590afb8ca08 /src/gui | |
parent | 4825eb0b1c940f17925eb70fc0155abd4443d4f2 (diff) | |
download | manaverse-edb68b472461dd28db18da11f76a90d7f3681a9d.tar.gz manaverse-edb68b472461dd28db18da11f76a90d7f3681a9d.tar.bz2 manaverse-edb68b472461dd28db18da11f76a90d7f3681a9d.tar.xz manaverse-edb68b472461dd28db18da11f76a90d7f3681a9d.zip |
Remove "drop" popup menu handler.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 14 |
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")); } } } |