diff options
| author | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-11-15 15:42:22 -0800 | 
|---|---|---|
| committer | Gilbert Gonzales <gilbert@lindenlab.com> | 2012-11-15 15:42:22 -0800 | 
| commit | d3474c6eaf5f26986e7988f4ca773f67e034c49d (patch) | |
| tree | 5f25e19f90aab214c2d3526c25312f541e2f2053 /indra/llui/llfloater.cpp | |
| parent | d75824d520ba1965e48196f8b230ded0f15c5841 (diff) | |
CHUI-489: Now sounds exist for teleport and inventory offers. The sound is specified in notifications.xml. Also changes for CHUI 486, which allow the user to set preferences for hearing sounds for a New Conversation, Incoming Voice Call, Teleport Offer and Inventory Offer.
Diffstat (limited to 'indra/llui/llfloater.cpp')
| -rw-r--r-- | indra/llui/llfloater.cpp | 15 | 
1 files changed, 14 insertions, 1 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index 0e57ba02bf..3ab66f3321 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -64,6 +64,8 @@  // use this to control "jumping" behavior when Ctrl-Tabbing  const S32 TABBED_FLOATER_OFFSET = 0; +extern LLControlGroup gSavedSettings; +  namespace LLInitParam  {  	void TypeValues<LLFloaterEnums::EOpenPositioning>::declareValues() @@ -660,7 +662,18 @@ void LLFloater::openFloater(const LLSD& key)  		&& !getFloaterHost()  		&& (!getVisible() || isMinimized()))  	{ -		make_ui_sound("UISndWindowOpen"); +        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; +        } + +        if(playSound) +        { +            make_ui_sound("UISndWindowOpen"); +        }  	}  	//RN: for now, we don't allow rehosting from one multifloater to another  | 
