From d88da4d367b40261889afd41779cd029587bacfa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 21:33:19 +0300 Subject: Remove "protect item" popup menu handler. --- src/gui/popups/popupmenu.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index d384bbcd1..9246a1a50 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,11 +982,7 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "protect item" && mItemId) - { - PlayerInfo::protectItem(mItemId); - } - else if (link == "unprotect item" && mItemId) + if (link == "unprotect item" && mItemId) { PlayerInfo::unprotectItem(mItemId); } @@ -2607,7 +2603,7 @@ void PopupMenu::addProtection() mBrowserBox->addRow("##3---"); // TRANSLATORS: popup menu item // TRANSLATORS: add protection to item - mBrowserBox->addRow("protect item", _("Protect item")); + mBrowserBox->addRow("/protectitem 'ITEMID'", _("Protect item")); } } } -- cgit v1.2.3-60-g2f50