summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 20:08:58 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 20:08:58 +0300
commit6988830341bb983cc6c31ce708585db97a011ee2 (patch)
tree98a6866e792a785f7eb3bb66e77c556c517ae107 /src/gui/popups/popupmenu.cpp
parent231838081449186df16337bbac53bd87e9e0f376 (diff)
downloadplus-6988830341bb983cc6c31ce708585db97a011ee2.tar.gz
plus-6988830341bb983cc6c31ce708585db97a011ee2.tar.bz2
plus-6988830341bb983cc6c31ce708585db97a011ee2.tar.xz
plus-6988830341bb983cc6c31ce708585db97a011ee2.zip
Remove "retrieve" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp12
1 files changed, 2 insertions, 10 deletions
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)