summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 16:59:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 16:59:02 +0300
commit69198f89200401d1ae98250a755e8e9ee0c10acc (patch)
treef2b53a9d4af8e501b057e900c68518cc2c87f968 /src/gui/popups/popupmenu.cpp
parent92d9a68e2957dc6ddf7ffbdcc57bb497f0f8532e (diff)
downloadmv-69198f89200401d1ae98250a755e8e9ee0c10acc.tar.gz
mv-69198f89200401d1ae98250a755e8e9ee0c10acc.tar.bz2
mv-69198f89200401d1ae98250a755e8e9ee0c10acc.tar.xz
mv-69198f89200401d1ae98250a755e8e9ee0c10acc.zip
Remove "addtrade half" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 3d329753e..e289925fd 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 half" && mItem)
- {
- if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId()))
- tradeWindow->tradeItem(mItem, mItem->getQuantity() / 2, true);
- }
- else if (link == "addtrade all-1" && mItem)
+ if (link == "addtrade all-1" && mItem)
{
if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId()))
tradeWindow->tradeItem(mItem, mItem->getQuantity() - 1, true);
@@ -1765,7 +1760,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y,
}
// TRANSLATORS: popup menu item
// TRANSLATORS: add half item amount to trade
- mBrowserBox->addRow("addtrade half", _("Add to trade half"));
+ mBrowserBox->addRow("/addtrade 'INVINDEX' /",
+ _("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"));