From 85f443c2a92d1e148f3fa2b674bfcf0546642245 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 14:34:03 +0300 Subject: Remove "store" popup menu handler. --- src/gui/popups/popupmenu.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 8c63a2313..f1fbeb753 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 == "store" && mItem) - { - ItemAmountWindow::showWindow(ItemAmountWindow::StoreAdd, - inventoryWindow, mItem); - } - else if (link == "store 10" && mItem) + if (link == "store 10" && mItem) { int cnt = 10; if (cnt > mItem->getQuantity()) @@ -1828,7 +1823,7 @@ void PopupMenu::showPopup(Window *const parent, const int x, const int y, { // TRANSLATORS: popup menu item // TRANSLATORS: add item to storage - mBrowserBox->addRow("store", _("Store")); + mBrowserBox->addRow("/invtostorage 'INVINDEX'", _("Store")); if (cnt > 1) { if (cnt > 10) @@ -1958,7 +1953,7 @@ void PopupMenu::showItemPopup(const int x, const int y, Item *const item) { // TRANSLATORS: popup menu item // TRANSLATORS: add item to storage - mBrowserBox->addRow("store", _("Store")); + mBrowserBox->addRow("/invtostorage 'INVINDEX'", _("Store")); } // TRANSLATORS: popup menu item // TRANSLATORS: add item name to chat @@ -1999,7 +1994,7 @@ void PopupMenu::showDropPopup(const int x, const int y, Item *const item) { // TRANSLATORS: popup menu item // TRANSLATORS: add item to storage - mBrowserBox->addRow("store", _("Store")); + mBrowserBox->addRow("/invtostorage 'INVINDEX'", _("Store")); } addProtection(); // TRANSLATORS: popup menu item -- cgit v1.2.3-60-g2f50