summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 21:54:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 21:54:43 +0300
commit44b9b11f8dd4de47aaf98657d85a6b1d03d8de25 (patch)
tree86396e2f0f9cc1b18f9be9dc9f5df3b019a6a3e9 /src/gui/popups/popupmenu.cpp
parentd601630f26cd1043f5f2467757093f54c6269158 (diff)
downloadplus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.tar.gz
plus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.tar.bz2
plus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.tar.xz
plus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.zip
Remove "unprotect item" popup menu handler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp10
1 files changed, 3 insertions, 7 deletions
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
{