summaryrefslogtreecommitdiff
path: root/indra/llui/llfloater.cpp
diff options
context:
space:
mode:
authorGilbert Gonzales <gilbert@lindenlab.com>2012-11-15 19:24:45 -0800
committerGilbert Gonzales <gilbert@lindenlab.com>2012-11-15 19:24:45 -0800
commit987350fcb3cf2da03b70ac3fbadb0429f523d07a (patch)
tree3fa718455b83ea0204fbb45109bb5cddc92ad9ad /indra/llui/llfloater.cpp
parent89f7335a52ec9955432dbe8bfa5903f605b7362c (diff)
CHUI-489: Code review cleanup for both CHUI-489 and CHUI-486. This should be last commit for CHUI-489.
Diffstat (limited to 'indra/llui/llfloater.cpp')
-rw-r--r--indra/llui/llfloater.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp
index a3b5fb993d..ada2bde55e 100644
--- a/indra/llui/llfloater.cpp
+++ b/indra/llui/llfloater.cpp
@@ -662,13 +662,8 @@ void LLFloater::openFloater(const LLSD& key)
&& !getFloaterHost()
&& (!getVisible() || isMinimized()))
{
- bool playSound = true;
-
//Don't play a sound for incoming voice call based upon chat preference setting
- if(getName() == "incoming call" && gSavedSettings.getBOOL("PlaySoundIncomingVoiceCall") == FALSE)
- {
- playSound = false;
- }
+ bool playSound = !(getName() == "incoming call" && gSavedSettings.getBOOL("PlaySoundIncomingVoiceCall") == FALSE);
if(playSound)
{