diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-02-03 22:42:10 +0200 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-02-03 22:42:10 +0200 |
commit | e5bd3b8a4846ee21cfaf726cfbf3e943b277e7c1 (patch) | |
tree | 3718c3a04b67070468f85f10af522863334b15a9 /indra/newview/llavataractions.cpp | |
parent | b52d2a2f1b0406becb80862686be7b6f2444006d (diff) |
Fixed bug EXT-2915 ([BSI] Pay Button is hard to find on small resolutions).
Added a "Block/Unblock" item to the profile view panel overflow menu to make the menu more visible.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llavataractions.cpp')
-rw-r--r-- | indra/newview/llavataractions.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index 7eed2e7b9a..bd987eac77 100644 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -612,3 +612,13 @@ bool LLAvatarActions::isBlocked(const LLUUID& id) gCacheName->getFullName(id, name); return LLMuteList::getInstance()->isMuted(id, name); } + +// static +bool LLAvatarActions::canBlock(const LLUUID& id) +{ + std::string firstname, lastname; + gCacheName->getName(id, firstname, lastname); + bool is_linden = !LLStringUtil::compareStrings(lastname, "Linden"); + bool is_self = id == gAgentID; + return !is_self && !is_linden; +} |