diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-13 21:54:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-13 21:54:43 +0300 |
commit | 44b9b11f8dd4de47aaf98657d85a6b1d03d8de25 (patch) | |
tree | 86396e2f0f9cc1b18f9be9dc9f5df3b019a6a3e9 | |
parent | d601630f26cd1043f5f2467757093f54c6269158 (diff) | |
download | manaplus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.tar.gz manaplus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.tar.bz2 manaplus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.tar.xz manaplus-44b9b11f8dd4de47aaf98657d85a6b1d03d8de25.zip |
Remove "unprotect item" popup menu handler.
-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 { |