From 6494df1ca2a1c00b85828deb3b62f371338536fb Mon Sep 17 00:00:00 2001 From: Andrei Karas <akaras@inbox.ru> Date: Tue, 22 May 2012 22:21:21 +0300 Subject: Add option to hide nick for erased players relation. --- src/gui/popupmenu.cpp | 4 ++-- src/gui/setup_players.cpp | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/popupmenu.cpp b/src/gui/popupmenu.cpp index 436fd93b1..318de81b0 100644 --- a/src/gui/popupmenu.cpp +++ b/src/gui/popupmenu.cpp @@ -730,8 +730,7 @@ void PopupMenu::handleLink(const std::string &link, } else if (link == "unignore" && !mNick.empty()) { - player_relations.setRelation(mNick, - PlayerRelation::NEUTRAL); + player_relations.setRelation(mNick, PlayerRelation::NEUTRAL); } else if (link == "ignore" && being && being->getType() == ActorSprite::PLAYER) @@ -768,6 +767,7 @@ void PopupMenu::handleLink(const std::string &link, being->getType() == ActorSprite::PLAYER) { player_relations.setRelation(being->getName(), PlayerRelation::ERASED); + being->updateName(); } else if (link == "erase" && !mNick.empty()) { diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp index b2cd7847d..0f5fb9615 100644 --- a/src/gui/setup_players.cpp +++ b/src/gui/setup_players.cpp @@ -86,6 +86,9 @@ Setup_Players::Setup_Players() new SetupItemCheckBox(_("Group friends in who is online window"), "", "groupFriends", this, "groupFriendsEvent"); + new SetupItemCheckBox(_("Hide erased players nicks"), "", + "hideErased", this, "hideErasedEvent"); + setDimension(gcn::Rectangle(0, 0, 550, 350)); } -- cgit v1.2.3-70-g09d2