summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-13 21:33:19 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-13 21:33:19 +0300
commitd88da4d367b40261889afd41779cd029587bacfa (patch)
tree604edc53900064d40fc6cb382273e7b4cd2301b7 /src/gui/popups
parentca333756a61de5af5d07614dbedc6195c2e78023 (diff)
downloadmv-d88da4d367b40261889afd41779cd029587bacfa.tar.gz
mv-d88da4d367b40261889afd41779cd029587bacfa.tar.bz2
mv-d88da4d367b40261889afd41779cd029587bacfa.tar.xz
mv-d88da4d367b40261889afd41779cd029587bacfa.zip
Remove "protect item" popup menu handler.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 2 insertions, 6 deletions
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"));
}
}
}