aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llprefsvoice.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llprefsvoice.cpp')
-rw-r--r--linden/indra/newview/llprefsvoice.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/linden/indra/newview/llprefsvoice.cpp b/linden/indra/newview/llprefsvoice.cpp
index 22a0115..6661f08 100644
--- a/linden/indra/newview/llprefsvoice.cpp
+++ b/linden/indra/newview/llprefsvoice.cpp
@@ -57,7 +57,7 @@ private:
57 57
58public: 58public:
59 LLVoiceHotkeySelectDialog( LLPrefsVoiceLogic *parent ) 59 LLVoiceHotkeySelectDialog( LLPrefsVoiceLogic *parent )
60 : LLModalDialog( "", 240, 100 ), 60 : LLModalDialog( LLStringUtil::null, 240, 100 ),
61 mParent( parent ) 61 mParent( parent )
62 { 62 {
63 mOldFrontmost = gFloaterView->getFrontmost(); 63 mOldFrontmost = gFloaterView->getFrontmost();
@@ -96,7 +96,6 @@ void LLPrefsVoiceLogic::init()
96 mEnableVoice = gSavedSettings.getBOOL("EnableVoiceChat"); 96 mEnableVoice = gSavedSettings.getBOOL("EnableVoiceChat");
97 97
98 mVoiceCallsFriendsOnly = gSavedSettings.getBOOL("VoiceCallsFriendsOnly"); 98 mVoiceCallsFriendsOnly = gSavedSettings.getBOOL("VoiceCallsFriendsOnly");
99// mEnablePushToTalk = gSavedSettings.getBOOL("EnablePushToTalk");
100 mModifier = gSavedSettings.getString("PushToTalkButton"); 99 mModifier = gSavedSettings.getString("PushToTalkButton");
101 mPushToTalkToggle = gSavedSettings.getBOOL("PushToTalkToggle"); 100 mPushToTalkToggle = gSavedSettings.getBOOL("PushToTalkToggle");
102 mEarLocation = gSavedSettings.getS32("VoiceEarLocation"); 101 mEarLocation = gSavedSettings.getS32("VoiceEarLocation");
@@ -139,7 +138,6 @@ void LLPrefsVoiceLogic::cancel()
139{ 138{
140 gSavedSettings.setBOOL("EnableVoiceChat", mEnableVoice); 139 gSavedSettings.setBOOL("EnableVoiceChat", mEnableVoice);
141 gSavedSettings.setBOOL("VoiceCallsFriendsOnly", mVoiceCallsFriendsOnly); 140 gSavedSettings.setBOOL("VoiceCallsFriendsOnly", mVoiceCallsFriendsOnly);
142// gSavedSettings.setBOOL("EnablePushToTalk", mEnablePushToTalk );
143 gSavedSettings.setString("PushToTalkButton", mModifier); 141 gSavedSettings.setString("PushToTalkButton", mModifier);
144 gSavedSettings.setBOOL("PushToTalkToggle", mPushToTalkToggle ); 142 gSavedSettings.setBOOL("PushToTalkToggle", mPushToTalkToggle );
145 gSavedSettings.setS32("VoiceEarLocation", mEarLocation); 143 gSavedSettings.setS32("VoiceEarLocation", mEarLocation);
@@ -229,7 +227,7 @@ BOOL LLVoiceHotkeySelectDialog::handleKeyHere(KEY key, MASK mask)
229 227
230 228
231LLPrefsVoice::LLPrefsVoice() 229LLPrefsVoice::LLPrefsVoice()
232: LLPanel("Voice Chat Panel") 230 : LLPanel(std::string("Voice Chat Panel"))
233{ 231{
234 LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_voice.xml"); 232 LLUICtrlFactory::getInstance()->buildPanel(this, "panel_preferences_voice.xml");
235 mLogic = new LLPrefsVoiceLogic(this); 233 mLogic = new LLPrefsVoiceLogic(this);