summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-12 22:48:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-12 22:48:02 +0300
commitb6fa84983bfe0a9fcfd915f6f170c7bfdde1510b (patch)
tree1c61785f4badf748e41af78342674be4ea6e6923 /src/gui/popups/popupmenu.cpp
parent62e4f21e5cd2f38773d8d0a4d7db29c4eebbeb51 (diff)
downloadmanaverse-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.tar.gz
manaverse-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.tar.bz2
manaverse-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.tar.xz
manaverse-b6fa84983bfe0a9fcfd915f6f170c7bfdde1510b.zip
Remove "split" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp14
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()