summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-11 13:19:20 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-11 13:19:20 +0300
commit8f6f916bb53d15dd2b6a466501e50b32f03d7a9d (patch)
tree2d17d8b3efe4d50958b89be521152edc20fa29a0 /src/gui
parenta2bbfcce05d3f40b0ce2ed21608bfc59a3a916c8 (diff)
downloadmanaplus-8f6f916bb53d15dd2b6a466501e50b32f03d7a9d.tar.gz
manaplus-8f6f916bb53d15dd2b6a466501e50b32f03d7a9d.tar.bz2
manaplus-8f6f916bb53d15dd2b6a466501e50b32f03d7a9d.tar.xz
manaplus-8f6f916bb53d15dd2b6a466501e50b32f03d7a9d.zip
Remove "sell" popup menu handler.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/popups/popupmenu.cpp21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index e575232d5..4850b2a2c 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -263,7 +263,7 @@ void PopupMenu::showPopup(const int x, const int y, const Being *const being)
mBrowserBox->addRow("/buy 'NAME'", _("Buy"));
// TRANSLATORS: popup menu item
// TRANSLATORS: sell to npc
- mBrowserBox->addRow("sell", _("Sell"));
+ mBrowserBox->addRow("/sell 'NAME'", _("Sell"));
}
mBrowserBox->addRow("##3---");
@@ -979,18 +979,7 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "sell" && being && mBeingId != 0)
- {
- if (being->getType() == ActorType::Npc)
- npcHandler->sell(mBeingId);
- else if (being->getType() == ActorType::Player)
- buySellHandler->requestBuyList(being->getName());
- }
- else if (link == "sell" && !mNick.empty())
- {
- buySellHandler->requestBuyList(mNick);
- }
- else if (link == "attack" && being)
+ if (link == "attack" && being)
{
if (localPlayer)
localPlayer->attack(being, true);
@@ -2786,7 +2775,7 @@ void PopupMenu::addBuySell(const Being *const being)
mBrowserBox->addRow("/buy 'NAME'", _("Buy"));
// TRANSLATORS: popup menu item
// TRANSLATORS: sell item
- mBrowserBox->addRow("sell", _("Sell"));
+ mBrowserBox->addRow("/sell 'NAME'", _("Sell"));
}
}
else
@@ -2796,7 +2785,7 @@ void PopupMenu::addBuySell(const Being *const being)
mBrowserBox->addRow("/buy 'NAME'", _("Buy (?)"));
// TRANSLATORS: popup menu item
// TRANSLATORS: sell item
- mBrowserBox->addRow("sell", _("Sell (?)"));
+ mBrowserBox->addRow("/sell 'NAME'", _("Sell (?)"));
}
}
}
@@ -2811,7 +2800,7 @@ void PopupMenu::addBuySellDefault()
mBrowserBox->addRow("/buy 'NAME'", _("Buy (?)"));
// TRANSLATORS: popup menu item
// TRANSLATORS: sell item
- mBrowserBox->addRow("sell", _("Sell (?)"));
+ mBrowserBox->addRow("/sell 'NAME'", _("Sell (?)"));
}
}