From 92d9a68e2957dc6ddf7ffbdcc57bb497f0f8532e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 16:57:28 +0300 Subject: Remove "addtrade 10" popup menu handler. --- src/gui/popups/popupmenu.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'src') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index f3311ec19..3d329753e 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,17 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "addtrade 10" && mItem) - { - if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId())) - { - int cnt = 10; - if (cnt > mItem->getQuantity()) - cnt = mItem->getQuantity(); - tradeWindow->tradeItem(mItem, cnt, true); - } - } - else if (link == "addtrade half" && mItem) + if (link == "addtrade half" && mItem) { if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId())) tradeWindow->tradeItem(mItem, mItem->getQuantity() / 2, true); @@ -1770,7 +1760,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: add 10 item amount to trade - mBrowserBox->addRow("addtrade 10", _("Add to trade 10")); + mBrowserBox->addRow("/addtrade 'INVINDEX' 10", + _("Add to trade 10")); } // TRANSLATORS: popup menu item // TRANSLATORS: add half item amount to trade -- cgit v1.2.3-70-g09d2