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.cpp32
1 files changed, 15 insertions, 17 deletions
diff --git a/linden/indra/newview/llprefsvoice.cpp b/linden/indra/newview/llprefsvoice.cpp
index c66a3d0..c5788d6 100644
--- a/linden/indra/newview/llprefsvoice.cpp
+++ b/linden/indra/newview/llprefsvoice.cpp
@@ -149,7 +149,7 @@ void LLPrefsVoiceLogic::onEarLocationCommit(LLUICtrl* ctrl, void* user_data)
149} 149}
150 150
151//static 151//static
152void LLPrefsVoiceLogic::onClickLaunchWizard(void* user_data) 152void LLPrefsVoiceLogic::onClickLaunchWizard(void* user_data)
153{ 153{
154 LLFloaterVoiceWizard::showInstance(); 154 LLFloaterVoiceWizard::showInstance();
155} 155}
@@ -231,10 +231,8 @@ LLPrefsVoice::LLPrefsVoice()
231 childSetAction("device_settings_btn", onClickDeviceSettingsBtn, this); 231 childSetAction("device_settings_btn", onClickDeviceSettingsBtn, this);
232 232
233 // create floater immediately and keep it hidden 233 // create floater immediately and keep it hidden
234 // since it stores preference state for audio devices 234 // since it stores preference state for audio devices
235 mDeviceSettings = LLFloaterDeviceSettings::getInstance(); 235 mDeviceSettings = LLFloaterDeviceSettings::getInstance();
236 //*FIXME: getInstance() needs to not show the floater
237 LLFloaterDeviceSettings::hideInstance();
238} 236}
239 237
240LLPrefsVoice::~LLPrefsVoice() 238LLPrefsVoice::~LLPrefsVoice()
@@ -263,15 +261,15 @@ void LLPrefsVoice::cancel()
263 mLogic->cancel(); 261 mLogic->cancel();
264 mDeviceSettings->cancel(); 262 mDeviceSettings->cancel();
265} 263}
266 264
267//static 265//static
268void LLPrefsVoice::onClickDeviceSettingsBtn(void* user_data) 266void LLPrefsVoice::onClickDeviceSettingsBtn(void* user_data)
269{ 267{
270 LLPrefsVoice* prefs = (LLPrefsVoice*)user_data; 268 LLPrefsVoice* prefs = (LLPrefsVoice*)user_data;
271 prefs->mDeviceSettings->open(); 269 prefs->mDeviceSettings->open();
272 LLFloater* parent_floater = gFloaterView->getParentFloater(prefs); 270 LLFloater* parent_floater = gFloaterView->getParentFloater(prefs);
273 if (parent_floater) 271 if (parent_floater)
274 { 272 {
275 parent_floater->addDependentFloater(prefs->mDeviceSettings, FALSE); 273 parent_floater->addDependentFloater(prefs->mDeviceSettings, FALSE);
276 } 274 }
277} 275}