aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsvoice.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:39 -0500
committerJacek Antonelli2008-08-15 23:45:39 -0500
commitfdb921e78b7b0e05f6e7e47e0c238bb87ee1afbc (patch)
tree3879991f681c965dce8040bb9deece680fc9f287 /linden/indra/newview/llprefsvoice.cpp
parentSecond Life viewer sources 1.19.1.3 (diff)
downloadmeta-impy-fdb921e78b7b0e05f6e7e47e0c238bb87ee1afbc.zip
meta-impy-fdb921e78b7b0e05f6e7e47e0c238bb87ee1afbc.tar.gz
meta-impy-fdb921e78b7b0e05f6e7e47e0c238bb87ee1afbc.tar.bz2
meta-impy-fdb921e78b7b0e05f6e7e47e0c238bb87ee1afbc.tar.xz
Second Life viewer sources 1.19.1.4
Diffstat (limited to 'linden/indra/newview/llprefsvoice.cpp')
-rw-r--r--linden/indra/newview/llprefsvoice.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/linden/indra/newview/llprefsvoice.cpp b/linden/indra/newview/llprefsvoice.cpp
index 9751ea7..773ddfe 100644
--- a/linden/indra/newview/llprefsvoice.cpp
+++ b/linden/indra/newview/llprefsvoice.cpp
@@ -93,7 +93,7 @@ void LLPrefsVoiceLogic::init()
93 mEnableVoice = gSavedSettings.getBOOL("EnableVoiceChat"); 93 mEnableVoice = gSavedSettings.getBOOL("EnableVoiceChat");
94 94
95 mVoiceCallsFriendsOnly = gSavedSettings.getBOOL("VoiceCallsFriendsOnly"); 95 mVoiceCallsFriendsOnly = gSavedSettings.getBOOL("VoiceCallsFriendsOnly");
96 mEnablePushToTalk = gSavedSettings.getBOOL("EnablePushToTalk"); 96// mEnablePushToTalk = gSavedSettings.getBOOL("EnablePushToTalk");
97 mModifier = gSavedSettings.getString("PushToTalkButton"); 97 mModifier = gSavedSettings.getString("PushToTalkButton");
98 mPushToTalkToggle = gSavedSettings.getBOOL("PushToTalkToggle"); 98 mPushToTalkToggle = gSavedSettings.getBOOL("PushToTalkToggle");
99 mEarLocation = gSavedSettings.getS32("VoiceEarLocation"); 99 mEarLocation = gSavedSettings.getS32("VoiceEarLocation");
@@ -122,17 +122,17 @@ void LLPrefsVoiceLogic::refresh()
122 mPanel->childSetEnabled("push_to_talk_check", enable); 122 mPanel->childSetEnabled("push_to_talk_check", enable);
123 mPanel->childSetEnabled("push_to_talk_label", enable); 123 mPanel->childSetEnabled("push_to_talk_label", enable);
124 mPanel->childSetEnabled("voice_call_friends_only_check", enable); 124 mPanel->childSetEnabled("voice_call_friends_only_check", enable);
125 mPanel->childSetEnabled("push_to_talk_toggle_check", enable /*&& gSavedSettings.getBOOL("EnablePushToTalk")*/); 125 mPanel->childSetEnabled("push_to_talk_toggle_check", enable);
126 mPanel->childSetEnabled("ear_location", enable); 126 mPanel->childSetEnabled("ear_location", enable);
127 mPanel->childSetEnabled("set_voice_hotkey_button", enable /*&& gSavedSettings.getBOOL("EnablePushToTalk")*/); 127 mPanel->childSetEnabled("set_voice_hotkey_button", enable);
128 mPanel->childSetEnabled("set_voice_middlemouse_button", enable /*&& gSavedSettings.getBOOL("EnablePushToTalk")*/); 128 mPanel->childSetEnabled("set_voice_middlemouse_button", enable);
129} 129}
130 130
131void LLPrefsVoiceLogic::cancel() 131void LLPrefsVoiceLogic::cancel()
132{ 132{
133 gSavedSettings.setBOOL("EnableVoiceChat", mEnableVoice); 133 gSavedSettings.setBOOL("EnableVoiceChat", mEnableVoice);
134 gSavedSettings.setBOOL("VoiceCallsFriendsOnly", mVoiceCallsFriendsOnly); 134 gSavedSettings.setBOOL("VoiceCallsFriendsOnly", mVoiceCallsFriendsOnly);
135 gSavedSettings.setBOOL("EnablePushToTalk", mEnablePushToTalk ); 135// gSavedSettings.setBOOL("EnablePushToTalk", mEnablePushToTalk );
136 gSavedSettings.setString("PushToTalkButton", mModifier); 136 gSavedSettings.setString("PushToTalkButton", mModifier);
137 gSavedSettings.setBOOL("PushToTalkToggle", mPushToTalkToggle ); 137 gSavedSettings.setBOOL("PushToTalkToggle", mPushToTalkToggle );
138 gSavedSettings.setS32("VoiceEarLocation", mEarLocation); 138 gSavedSettings.setS32("VoiceEarLocation", mEarLocation);