diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:08:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 20:08:58 +0300 |
commit | 6988830341bb983cc6c31ce708585db97a011ee2 (patch) | |
tree | 98a6866e792a785f7eb3bb66e77c556c517ae107 | |
parent | 231838081449186df16337bbac53bd87e9e0f376 (diff) | |
download | plus-6988830341bb983cc6c31ce708585db97a011ee2.tar.gz plus-6988830341bb983cc6c31ce708585db97a011ee2.tar.bz2 plus-6988830341bb983cc6c31ce708585db97a011ee2.tar.xz plus-6988830341bb983cc6c31ce708585db97a011ee2.zip |
Remove "retrieve" popup menu handler.
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 12 |
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) |