From 7bea0c5a292639aa1f3c1349710f2c5cccff1668 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 16:55:09 +0300 Subject: Remove "addtrade" popup menu handler. --- src/gui/popups/popupmenu.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 56b478125..f3311ec19 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 == "addtrade" && mItem) - { - if (!PlayerInfo::isItemProtected(mItem->getId())) - { - ItemAmountWindow::showWindow(ItemAmountWindow::TradeAdd, - tradeWindow, mItem); - } - } - else if (link == "addtrade 10" && mItem) + if (link == "addtrade 10" && mItem) { if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId())) { @@ -1771,7 +1763,7 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: add item to trade - mBrowserBox->addRow("addtrade", _("Add to trade")); + mBrowserBox->addRow("/addtrade 'INVINDEX'", _("Add to trade")); if (cnt > 1) { if (cnt > 10) -- cgit v1.2.3-70-g09d2