summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 17:01:16 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 17:01:16 +0300
commit2f5dfda6197836b1fcf661e89f4da989258208a8 (patch)
tree20493ddf5ed1e8571ff7032d5db1480203fc47fe /src
parent69198f89200401d1ae98250a755e8e9ee0c10acc (diff)
downloadplus-2f5dfda6197836b1fcf661e89f4da989258208a8.tar.gz
plus-2f5dfda6197836b1fcf661e89f4da989258208a8.tar.bz2
plus-2f5dfda6197836b1fcf661e89f4da989258208a8.tar.xz
plus-2f5dfda6197836b1fcf661e89f4da989258208a8.zip
Remove "addtrade all-1" popup menu handler.
Diffstat (limited to 'src')
-rw-r--r--src/gui/popups/popupmenu.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index e289925fd..52babbb8b 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-1" && mItem)
- {
- if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId()))
- tradeWindow->tradeItem(mItem, mItem->getQuantity() - 1, true);
- }
- else if (link == "addtrade all" && mItem)
+ if (link == "addtrade all" && mItem)
{
if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId()))
tradeWindow->tradeItem(mItem, mItem->getQuantity(), true);
@@ -1764,7 +1759,7 @@ 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 all-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"));