diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 14:34:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 14:34:03 +0300 |
commit | 85f443c2a92d1e148f3fa2b674bfcf0546642245 (patch) | |
tree | 7000a35242ea4e4f8047620613d338fe66e9255a /src/gui/popups/popupmenu.cpp | |
parent | 100d8af2ef802edc369deba120fcda7c81e25d93 (diff) | |
download | manaverse-85f443c2a92d1e148f3fa2b674bfcf0546642245.tar.gz manaverse-85f443c2a92d1e148f3fa2b674bfcf0546642245.tar.bz2 manaverse-85f443c2a92d1e148f3fa2b674bfcf0546642245.tar.xz manaverse-85f443c2a92d1e148f3fa2b674bfcf0546642245.zip |
Remove "store" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
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 |