From 44b9b11f8dd4de47aaf98657d85a6b1d03d8de25 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 13 Dec 2014 21:54:43 +0300 Subject: Remove "unprotect item" popup menu handler. --- src/gui/popups/popupmenu.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/gui/popups/popupmenu.cpp') diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp index 9246a1a50..261968739 100644 --- a/src/gui/popups/popupmenu.cpp +++ b/src/gui/popups/popupmenu.cpp @@ -982,12 +982,8 @@ void PopupMenu::handleLink(const std::string &link, if (actorManager) being = actorManager->findBeing(mBeingId); - if (link == "unprotect item" && mItemId) - { - PlayerInfo::unprotectItem(mItemId); - } - else if (link == "party" && being && - being->getType() == ActorType::Player) + if (link == "party" && being && + being->getType() == ActorType::Player) { partyHandler->invite(being->getName()); } @@ -2594,7 +2590,7 @@ void PopupMenu::addProtection() mBrowserBox->addRow("##3---"); // TRANSLATORS: popup menu item // TRANSLATORS: remove protection from item - mBrowserBox->addRow("unprotect item", _("Unprotect item")); + mBrowserBox->addRow("/unprotectitem 'ITEMID'", _("Unprotect item")); } else { -- cgit v1.2.3-60-g2f50