summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-11 22:03:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-11 22:03:14 +0300
commit5b9713d50b4b504e74e857b48a2c5d6e7153d9e2 (patch)
treed7e817e67b5fb318d85e38c66b1f26902964a67c
parent30b486f4155f69471a19422656a25c3d902aff28 (diff)
downloadmanaverse-5b9713d50b4b504e74e857b48a2c5d6e7153d9e2.tar.gz
manaverse-5b9713d50b4b504e74e857b48a2c5d6e7153d9e2.tar.bz2
manaverse-5b9713d50b4b504e74e857b48a2c5d6e7153d9e2.tar.xz
manaverse-5b9713d50b4b504e74e857b48a2c5d6e7153d9e2.zip
Remove "erase" popup menu handler.
-rw-r--r--src/gui/popups/popupmenu.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index b95f1d41e..605698acd 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -979,19 +979,9 @@ void PopupMenu::handleLink(const std::string &link,
if (actorManager)
being = actorManager->findBeing(mBeingId);
- if (link == "erase" && being &&
+ if (link == "disregard" && being &&
being->getType() == ActorType::Player)
{
- player_relations.setRelation(being->getName(), PlayerRelation::ERASED);
- being->updateName();
- }
- else if (link == "erase" && !mNick.empty())
- {
- player_relations.setRelation(mNick, PlayerRelation::ERASED);
- }
- else if (link == "disregard" && being &&
- being->getType() == ActorType::Player)
- {
player_relations.setRelation(being->getName(),
PlayerRelation::DISREGARDED);
}
@@ -2606,7 +2596,7 @@ void PopupMenu::addNormalRelations()
mBrowserBox->addRow("/enemy 'NAME'", _("Set as enemy"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add player to erased list
- mBrowserBox->addRow("erase", _("Erase"));
+ mBrowserBox->addRow("/erase 'NAME'", _("Erase"));
}
void PopupMenu::addPlayerRelation(const std::string &name)
@@ -2639,7 +2629,7 @@ void PopupMenu::addPlayerRelation(const std::string &name)
mBrowserBox->addRow("/enemy 'NAME'", _("Set as enemy"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add player to erased list
- mBrowserBox->addRow("erase", _("Erase"));
+ mBrowserBox->addRow("/erase 'NAME'", _("Erase"));
break;
case PlayerRelation::DISREGARDED:
@@ -2651,7 +2641,7 @@ void PopupMenu::addPlayerRelation(const std::string &name)
mBrowserBox->addRow("/ignore 'NAME'", _("Completely ignore"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add player to erased list
- mBrowserBox->addRow("erase", _("Erase"));
+ mBrowserBox->addRow("/erase 'NAME'", _("Erase"));
break;
case PlayerRelation::IGNORED:
@@ -2660,7 +2650,7 @@ void PopupMenu::addPlayerRelation(const std::string &name)
mBrowserBox->addRow("/unignore 'NAME'", _("Unignore"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add player to erased list
- mBrowserBox->addRow("erase", _("Erase"));
+ mBrowserBox->addRow("/erase 'NAME'", _("Erase"));
break;
case PlayerRelation::ENEMY2:
@@ -2678,7 +2668,7 @@ void PopupMenu::addPlayerRelation(const std::string &name)
mBrowserBox->addRow("/blacklist 'NAME'", _("Black list"));
// TRANSLATORS: popup menu item
// TRANSLATORS: add player to erased list
- mBrowserBox->addRow("erase", _("Erase"));
+ mBrowserBox->addRow("/erase 'NAME'", _("Erase"));
break;
case PlayerRelation::ERASED: