summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorRick Pasetto <rick@lindenlab.com>2010-02-22 17:47:19 -0800
committerRick Pasetto <rick@lindenlab.com>2010-02-22 17:47:19 -0800
commitea2e72f4502fe58b01a00f8e6b0ae3e47c269e8b (patch)
tree7dd3ddef43d45ff8b147e4986e31bcae20b21ff5 /indra
parentdcfcf50d40685ccc4c092ee0f15297df059da70f (diff)
FIX (unposted bug): Nearby media "dynamic" controls not disabled properly when media disabled
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llpanelnearbymedia.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/indra/newview/llpanelnearbymedia.cpp b/indra/newview/llpanelnearbymedia.cpp
index 52cdd386c9..877b31513a 100644
--- a/indra/newview/llpanelnearbymedia.cpp
+++ b/indra/newview/llpanelnearbymedia.cpp
@@ -953,15 +953,29 @@ void LLPanelNearByMedia::onMoreLess()
void LLPanelNearByMedia::updateControls()
{
+ if (! gSavedSettings.getBOOL("AudioStreamingMedia"))
+ {
+ // Just show disabled controls
+ showDisabledControls();
+ return;
+ }
+
LLUUID selected_media_id = mMediaList->getValue().asUUID();
if (selected_media_id == PARCEL_AUDIO_LIST_ITEM_UUID)
{
- showTimeBasedControls(LLViewerMedia::isParcelAudioPlaying(),
+ if (!LLViewerMedia::hasParcelAudio())
+ {
+ // Shouldn't happen, but do this anyway
+ showDisabledControls();
+ }
+ else {
+ showTimeBasedControls(LLViewerMedia::isParcelAudioPlaying(),
false, // include_zoom
false, // is_zoomed
gSavedSettings.getBOOL("MuteMusic"),
gSavedSettings.getF32("AudioLevelMusic") );
+ }
}
else if (selected_media_id == PARCEL_MEDIA_LIST_ITEM_UUID)
{