summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelnearbymedia.cpp
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-06-25 18:51:34 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-06-25 18:51:34 +0300
commit8602c5827caf40b654e9a6fed0d345fb0eee610b (patch)
tree67669481446184fbcb4f995b6c297b4fcc7c77bf /indra/newview/llpanelnearbymedia.cpp
parent08fd73410e9a7ffb64acb15422fc6836230aa588 (diff)
MAINT-8457 FIXED "Mute" switching cancels the volume settings of Nearby Media
Diffstat (limited to 'indra/newview/llpanelnearbymedia.cpp')
-rw-r--r--indra/newview/llpanelnearbymedia.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/newview/llpanelnearbymedia.cpp b/indra/newview/llpanelnearbymedia.cpp
index d8ef5b39ad..f3a2ed9408 100644
--- a/indra/newview/llpanelnearbymedia.cpp
+++ b/indra/newview/llpanelnearbymedia.cpp
@@ -1168,12 +1168,12 @@ void LLPanelNearByMedia::onClickSelectedMediaMute()
F32 volume = impl->getVolume();
if(volume > 0.0)
{
- impl->setVolume(0.0);
+ impl->setMute(true);
}
else if (mVolumeSlider->getValueF32() == 0.0)
{
- impl->setVolume(1.0);
- mVolumeSlider->setValue(1.0);
+ impl->setMute(false);
+ mVolumeSlider->setValue(impl->getVolume());
}
else
{