diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 16:55:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 16:55:09 +0300 |
commit | 7bea0c5a292639aa1f3c1349710f2c5cccff1668 (patch) | |
tree | 923e9f207254cbcb5eadadb6fc7c80fc91e08f00 /src/gui/popups/popupmenu.cpp | |
parent | bb0b9dbea888cd621b6da3465da19f0794073cc1 (diff) | |
download | manaplus-7bea0c5a292639aa1f3c1349710f2c5cccff1668.tar.gz manaplus-7bea0c5a292639aa1f3c1349710f2c5cccff1668.tar.bz2 manaplus-7bea0c5a292639aa1f3c1349710f2c5cccff1668.tar.xz manaplus-7bea0c5a292639aa1f3c1349710f2c5cccff1668.zip |
Remove "addtrade" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
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) |