summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 16:55:09 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 16:55:09 +0300
commit7bea0c5a292639aa1f3c1349710f2c5cccff1668 (patch)
tree923e9f207254cbcb5eadadb6fc7c80fc91e08f00
parentbb0b9dbea888cd621b6da3465da19f0794073cc1 (diff)
downloadmv-7bea0c5a292639aa1f3c1349710f2c5cccff1668.tar.gz
mv-7bea0c5a292639aa1f3c1349710f2c5cccff1668.tar.bz2
mv-7bea0c5a292639aa1f3c1349710f2c5cccff1668.tar.xz
mv-7bea0c5a292639aa1f3c1349710f2c5cccff1668.zip
Remove "addtrade" popup menu handler.
-rw-r--r--src/gui/popups/popupmenu.cpp12
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)