summaryrefslogtreecommitdiff
path: root/src/gui/popupmenu.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-05-22 22:21:21 +0300
committerAndrei Karas <akaras@inbox.ru>2012-05-22 23:03:48 +0300
commit6494df1ca2a1c00b85828deb3b62f371338536fb (patch)
treef4b7e6593ee9b6affa6516d6b0fdbbf7051c6dba /src/gui/popupmenu.cpp
parent7f06820c754522b00d1a3954036931a0b6efcf0f (diff)
downloadplus-6494df1ca2a1c00b85828deb3b62f371338536fb.tar.gz
plus-6494df1ca2a1c00b85828deb3b62f371338536fb.tar.bz2
plus-6494df1ca2a1c00b85828deb3b62f371338536fb.tar.xz
plus-6494df1ca2a1c00b85828deb3b62f371338536fb.zip
Add option to hide nick for erased players relation.
Diffstat (limited to 'src/gui/popupmenu.cpp')
-rw-r--r--src/gui/popupmenu.cpp4
1 files changed, 2 insertions, 2 deletions
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())
{