diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/popups/popupmenu.cpp | 10 |
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 { |