summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndreyL ProductEngine <alihatskiy@productengine.com>2016-12-21 06:57:49 +0200
committerAndreyL ProductEngine <alihatskiy@productengine.com>2016-12-21 06:57:49 +0200
commite48af9ba0f40aa8096fddd28e4973d6853bc767e (patch)
treec3cb50baefa2e3ac306d5a22f2aacfd3f8472b51 /indra/newview
parent946b28ad765dc43ad6d1c715fa93a6f7c233ce64 (diff)
MAINT-7020 llui/llfloater.cpp should not access settings
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llimview.cpp8
-rw-r--r--indra/newview/skins/default/xui/en/floater_outgoing_call.xml1
2 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llimview.cpp b/indra/newview/llimview.cpp
index 951389b856..2405c3a1a3 100644
--- a/indra/newview/llimview.cpp
+++ b/indra/newview/llimview.cpp
@@ -2354,7 +2354,13 @@ void LLIncomingCallDialog::onAvatarNameCache(const LLUUID& agent_id,
void LLIncomingCallDialog::onOpen(const LLSD& key)
{
LLCallDialog::onOpen(key);
- make_ui_sound("UISndStartIM");
+
+ if (gSavedSettings.getBOOL("PlaySoundIncomingVoiceCall"))
+ {
+ // play a sound for incoming voice call if respective property is set
+ make_ui_sound("UISndStartIM");
+ }
+
LLStringUtil::format_map_t args;
LLGroupData data;
// if it's a group call, retrieve group name to use it in question
diff --git a/indra/newview/skins/default/xui/en/floater_outgoing_call.xml b/indra/newview/skins/default/xui/en/floater_outgoing_call.xml
index ffbb6aa28b..d714cc613e 100644
--- a/indra/newview/skins/default/xui/en/floater_outgoing_call.xml
+++ b/indra/newview/skins/default/xui/en/floater_outgoing_call.xml
@@ -8,6 +8,7 @@
layout="topleft"
name="outgoing call"
help_topic="outgoing_call"
+ sound_flags="0"
save_dock_state="true"
title="CALLING"
width="410">