diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 16:57:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 16:57:28 +0300 |
commit | 92d9a68e2957dc6ddf7ffbdcc57bb497f0f8532e (patch) | |
tree | 5708dfa63e519431398ddfc68656983fc4dc25bb /src/gui/popups | |
parent | 7bea0c5a292639aa1f3c1349710f2c5cccff1668 (diff) | |
download | manaplus-92d9a68e2957dc6ddf7ffbdcc57bb497f0f8532e.tar.gz manaplus-92d9a68e2957dc6ddf7ffbdcc57bb497f0f8532e.tar.bz2 manaplus-92d9a68e2957dc6ddf7ffbdcc57bb497f0f8532e.tar.xz manaplus-92d9a68e2957dc6ddf7ffbdcc57bb497f0f8532e.zip |
Remove "addtrade 10" popup menu handler.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index f3311ec19..3d329753e 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,17 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "addtrade 10" && mItem) - { - if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId())) - { - int cnt = 10; - if (cnt > mItem->getQuantity()) - cnt = mItem->getQuantity(); - tradeWindow->tradeItem(mItem, cnt, true); - } - } - else if (link == "addtrade half" && mItem) + if (link == "addtrade half" && mItem) { if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId())) tradeWindow->tradeItem(mItem, mItem->getQuantity() / 2, true); @@ -1770,7 +1760,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: add 10 item amount to trade - mBrowserBox->addRow("addtrade 10", _("Add to trade 10")); + mBrowserBox->addRow("/addtrade 'INVINDEX' 10", + _("Add to trade 10")); } // TRANSLATORS: popup menu item // TRANSLATORS: add half item amount to trade |