diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-12 22:48:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-12 22:48:02 +0300 |
commit | b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b (patch) | |
tree | 1c61785f4badf748e41af78342674be4ea6e6923 /src/gui | |
parent | 62e4f21e5cd2f38773d8d0a4d7db29c4eebbeb51 (diff) | |
download | manaplus-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.tar.gz manaplus-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.tar.bz2 manaplus-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.tar.xz manaplus-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.zip |
Remove "split" popup menu handler.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index cc9d74d34..774728748 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 == "split" && mItem) - { - ItemAmountWindow::showWindow(ItemAmountWindow::ItemSplit, - inventoryWindow, mItem); - } - else if (link == "drop" && mItem) + if (link == "drop" && mItem) { if (!PlayerInfo::isItemProtected(mItem->getId())) { @@ -2749,13 +2744,6 @@ void PopupMenu::addUseDrop(const Item *const item, const bool isProtected) mBrowserBox->addRow("drop", _("Drop")); } } - - if (inventoryHandler->canSplit(item)) - { - // TRANSLATORS: popup menu item - // TRANSLATORS: split items - mBrowserBox->addRow("split", _("Split")); - } } void PopupMenu::addGmCommands() |