aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r--linden/indra/newview/llfloaterpreference.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp
index f7392c4..0b3e856 100644
--- a/linden/indra/newview/llfloaterpreference.cpp
+++ b/linden/indra/newview/llfloaterpreference.cpp
@@ -54,6 +54,7 @@
54#include "llpanelmsgs.h" 54#include "llpanelmsgs.h"
55#include "llpanelweb.h" 55#include "llpanelweb.h"
56#include "llprefschat.h" 56#include "llprefschat.h"
57#include "llprefsvoice.h"
57#include "llprefsim.h" 58#include "llprefsim.h"
58#include "llresizehandle.h" 59#include "llresizehandle.h"
59#include "llresmgr.h" 60#include "llresmgr.h"
@@ -144,6 +145,10 @@ LLPreferenceCore::LLPreferenceCore(LLTabContainerCommon* tab_container, LLButton
144 mTabContainer->addTabPanel(mPrefsChat->getPanel(), mPrefsChat->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); 145 mTabContainer->addTabPanel(mPrefsChat->getPanel(), mPrefsChat->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer);
145 mPrefsChat->getPanel()->setDefaultBtn(default_btn); 146 mPrefsChat->getPanel()->setDefaultBtn(default_btn);
146 147
148 mPrefsVoice = new LLPrefsVoice();
149 mTabContainer->addTabPanel(mPrefsVoice, mPrefsVoice->getLabel(), FALSE, onTabChanged, mTabContainer);
150 mPrefsVoice->setDefaultBtn(default_btn);
151
147 mPrefsIM = new LLPrefsIM(); 152 mPrefsIM = new LLPrefsIM();
148 mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer); 153 mTabContainer->addTabPanel(mPrefsIM->getPanel(), mPrefsIM->getPanel()->getLabel(), FALSE, onTabChanged, mTabContainer);
149 mPrefsIM->getPanel()->setDefaultBtn(default_btn); 154 mPrefsIM->getPanel()->setDefaultBtn(default_btn);
@@ -225,8 +230,8 @@ void LLPreferenceCore::apply()
225 mDisplayPanel->apply(); 230 mDisplayPanel->apply();
226 mDisplayPanel2->apply(); 231 mDisplayPanel2->apply();
227 mDisplayPanel3->apply(); 232 mDisplayPanel3->apply();
228 mAudioPanel->apply();
229 mPrefsChat->apply(); 233 mPrefsChat->apply();
234 mPrefsVoice->apply();
230 mPrefsIM->apply(); 235 mPrefsIM->apply();
231 mMsgPanel->apply(); 236 mMsgPanel->apply();
232 #if LL_LIBXUL_ENABLED 237 #if LL_LIBXUL_ENABLED
@@ -245,6 +250,7 @@ void LLPreferenceCore::cancel()
245 mDisplayPanel3->cancel(); 250 mDisplayPanel3->cancel();
246 mAudioPanel->cancel(); 251 mAudioPanel->cancel();
247 mPrefsChat->cancel(); 252 mPrefsChat->cancel();
253 mPrefsVoice->cancel();
248 mPrefsIM->cancel(); 254 mPrefsIM->cancel();
249 mMsgPanel->cancel(); 255 mMsgPanel->cancel();
250 #if LL_LIBXUL_ENABLED 256 #if LL_LIBXUL_ENABLED
@@ -388,7 +394,7 @@ void LLFloaterPreference::onBtnOK( void* userdata )
388 if (fp->canClose()) 394 if (fp->canClose())
389 { 395 {
390 fp->apply(); 396 fp->apply();
391 fp->onClose(false); 397 fp->close(false);
392 398
393 gSavedSettings.saveToFile( gSettingsFileName, TRUE ); 399 gSavedSettings.saveToFile( gSettingsFileName, TRUE );
394 400