From 7bdb4845afdd157f95281293803567090e3f992a Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:29 -0500 Subject: Second Life viewer sources 1.19.0.2 --- linden/indra/newview/llpanelavatar.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'linden/indra/newview/llpanelavatar.cpp') diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp index dd4d6cf..664c9a6 100644 --- a/linden/indra/newview/llpanelavatar.cpp +++ b/linden/indra/newview/llpanelavatar.cpp @@ -575,7 +575,8 @@ LLPanelAvatarWeb::~LLPanelAvatarWeb() void LLPanelAvatarWeb::enableControls(BOOL self) { childSetEnabled("url_edit",self); - childSetVisible("status_text",!self); + childSetVisible("status_text",!self && !mURL.empty()); + childSetText("status_text", LLString::null); } void LLPanelAvatarWeb::setWebURL(std::string url) @@ -605,6 +606,9 @@ void LLPanelAvatarWeb::setWebURL(std::string url) { childSetVisible("profile_html",false); } + + BOOL own_avatar = (getPanelAvatar()->getAvatarID() == gAgent.getID() ); + childSetVisible("status_text",!own_avatar && !mURL.empty()); #if !LL_LIBXUL_ENABLED childSetVisible("load",false); -- cgit v1.1