From 6988830341bb983cc6c31ce708585db97a011ee2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 20:08:58 +0300 Subject: Remove "retrieve" popup menu handler. --- src/gui/popups/popupmenu.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/gui/popups') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index b43629c11..4345dfc42 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 == "retrieve" && mItem) - { - if (Widget::widgetExists(mWindow)) - { - ItemAmountWindow::showWindow(ItemAmountWindow::StoreRemove, - mWindow, mItem); - } - } - else if (link == "retrieve 10" && mItem) + if (link == "retrieve 10" && mItem) { int cnt = 10; if (cnt > mItem->getQuantity()) @@ -1800,7 +1792,7 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: get item from storage - mBrowserBox->addRow("retrieve", _("Retrieve")); + mBrowserBox->addRow("/storagetoinv 'INVINDEX'", _("Retrieve")); if (cnt > 1) { if (cnt > 10) -- cgit v1.2.3-70-g09d2