diff options
author | Rick Pasetto <rick@lindenlab.com> | 2010-02-24 11:34:49 -0800 |
---|---|---|
committer | Rick Pasetto <rick@lindenlab.com> | 2010-02-24 11:34:49 -0800 |
commit | f3083790798e5cf66f38e90b3fa223f923844770 (patch) | |
tree | 095d5a9437ddd13a79eea2c29812feea28d0b903 /indra/newview/llpanelnearbymedia.cpp | |
parent | 6575b685e91d334198789c88dec2efab7e5a1ac9 (diff) |
EXT-5682 - Honor "Hide URL" for Parcel Media and Parcel Audio
Review #141
Diffstat (limited to 'indra/newview/llpanelnearbymedia.cpp')
-rw-r--r-- | indra/newview/llpanelnearbymedia.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/indra/newview/llpanelnearbymedia.cpp b/indra/newview/llpanelnearbymedia.cpp index 75b25b6a40..c02f154dc8 100644 --- a/indra/newview/llpanelnearbymedia.cpp +++ b/indra/newview/llpanelnearbymedia.cpp @@ -574,13 +574,16 @@ void LLPanelNearByMedia::refreshParcelItems() if (NULL != mParcelMediaItem) { std::string name, url, tooltip; - getNameAndUrlHelper(LLViewerParcelMedia::getParcelMedia(), name, url, ""); - if (name.empty() || name == url) + if (!LLViewerParcelMgr::getInstance()->getAgentParcel()->getObscureMedia()) { - tooltip = url; - } - else { - tooltip = name + " : " + url; + getNameAndUrlHelper(LLViewerParcelMedia::getParcelMedia(), name, url, ""); + if (name.empty() || name == url) + { + tooltip = url; + } + else { + tooltip = name + " : " + url; + } } LLViewerMediaImpl *impl = LLViewerParcelMedia::getParcelMedia(); updateListItem(mParcelMediaItem, @@ -617,9 +620,14 @@ void LLPanelNearByMedia::refreshParcelItems() { bool is_playing = LLViewerMedia::isParcelAudioPlaying(); + std::string url; + if (!LLViewerParcelMgr::getInstance()->getAgentParcel()->getObscureMusic()) + { + url = LLViewerMedia::getParcelAudioURL(); + } updateListItem(mParcelAudioItem, mParcelAudioName, - LLViewerMedia::getParcelAudioURL(), + url, -1, // Proximity after Parcel Media, but closer than anything else (!is_playing), is_playing, |