summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-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)