diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 17:02:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 17:02:57 +0300 |
commit | ddd4c187d5b11abe9f94f0d32cda0a43fe83eba9 (patch) | |
tree | bf5b4f6f55dba37e07dd0b72cf1b110e8457bdd7 /src | |
parent | 2f5dfda6197836b1fcf661e89f4da989258208a8 (diff) | |
download | mv-ddd4c187d5b11abe9f94f0d32cda0a43fe83eba9.tar.gz mv-ddd4c187d5b11abe9f94f0d32cda0a43fe83eba9.tar.bz2 mv-ddd4c187d5b11abe9f94f0d32cda0a43fe83eba9.tar.xz mv-ddd4c187d5b11abe9f94f0d32cda0a43fe83eba9.zip |
Remove "addtrade all" popup menu handler.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 52babbb8b..b43629c11 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 all" && mItem) - { - if (tradeWindow && !PlayerInfo::isItemProtected(mItem->getId())) - tradeWindow->tradeItem(mItem, mItem->getQuantity(), true); - } - else if (link == "retrieve" && mItem) + if (link == "retrieve" && mItem) { if (Widget::widgetExists(mWindow)) { @@ -1759,10 +1754,12 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, _("Add to trade half")); // TRANSLATORS: popup menu item // TRANSLATORS: add all amount except one item to trade - mBrowserBox->addRow("/addtrade 'INVINDEX' -1", _("Add to trade all-1")); + mBrowserBox->addRow("/addtrade 'INVINDEX' -1", + _("Add to trade all-1")); // TRANSLATORS: popup menu item // TRANSLATORS: add all amount item to trade - mBrowserBox->addRow("addtrade all", _("Add to trade all")); + mBrowserBox->addRow("/addtrade 'INVINDEX' all", + _("Add to trade all")); } mBrowserBox->addRow("##3---"); } |