From ddd4c187d5b11abe9f94f0d32cda0a43fe83eba9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 17:02:57 +0300 Subject: Remove "addtrade all" popup menu handler. --- src/gui/popups/popupmenu.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 52babbb8b..b43629c11 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,12 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "addtrade all" && mItem) - { - if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId())) - tradeWindow->tradeItem(mItem, mItem->getQuantity(), true); - } - else if (link == "retrieve" && mItem) + if (link == "retrieve" && mItem) { if (Widget::widgetExists(mWindow)) { @@ -1759,10 +1754,12 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, _("Add to trade half")); // TRANSLATORS: popup menu item // TRANSLATORS: add all amount except one item to trade - mBrowserBox->addRow("/addtrade 'INVINDEX' -1", _("Add to trade all-1")); + mBrowserBox->addRow("/addtrade 'INVINDEX' -1", + _("Add to trade all-1")); // TRANSLATORS: popup menu item // TRANSLATORS: add all amount item to trade - mBrowserBox->addRow("addtrade all", _("Add to trade all")); + mBrowserBox->addRow("/addtrade 'INVINDEX' all", + _("Add to trade all")); } mBrowserBox->addRow("##3---"); } -- cgit v1.2.3-70-g09d2