diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:27:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:27:51 +0300 |
commit | b2043642e62a5fe58c42ee07a25c41b4ef6b67cc (patch) | |
tree | 9302308a74f92f5cdcc2fdb4db55c7cbcbe40490 /src/gui/popups | |
parent | 84f959b487380827d59236f1582334a0b0684e6b (diff) | |
download | manaplus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.tar.gz manaplus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.tar.bz2 manaplus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.tar.xz manaplus-b2043642e62a5fe58c42ee07a25c41b4ef6b67cc.zip |
Remove "retrieve all" popup menu handler.
Diffstat (limited to 'src/gui/popups')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 3aaf99c42..d384bbcd1 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,13 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "retrieve all" && mItem) - { - inventoryHandler->moveItem2(Inventory::STORAGE, - mItem->getInvIndex(), mItem->getQuantity(), - Inventory::INVENTORY); - } - else if (link == "protect item" && mItemId) + if (link == "protect item" && mItemId) { PlayerInfo::protectItem(mItemId); } @@ -1791,7 +1785,8 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, _("Retrieve all-1")); // TRANSLATORS: popup menu item // TRANSLATORS: get all item amount from storage - mBrowserBox->addRow("retrieve all", _("Retrieve all")); + mBrowserBox->addRow("/storagetoinv 'INVINDEX' all", + _("Retrieve all")); } } addProtection(); |