diff options
author | Jacek Antonelli | 2008-08-15 23:45:05 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:05 -0500 |
commit | 3d17e02e604977d976cc303b332bda7cebf11a57 (patch) | |
tree | 06e3dd8dfa7e7c9d12e24efb9155d4343e77aa7b /linden/indra/newview/llprefsvoice.cpp | |
parent | Second Life viewer sources 1.18.1.2 (diff) | |
download | meta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.zip meta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.tar.gz meta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.tar.bz2 meta-impy-3d17e02e604977d976cc303b332bda7cebf11a57.tar.xz |
Second Life viewer sources 1.18.2.0
Diffstat (limited to 'linden/indra/newview/llprefsvoice.cpp')
-rw-r--r-- | linden/indra/newview/llprefsvoice.cpp | 32 |
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 |
152 | void LLPrefsVoiceLogic::onClickLaunchWizard(void* user_data) | 152 | void 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 | ||
240 | LLPrefsVoice::~LLPrefsVoice() | 238 | LLPrefsVoice::~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 |
268 | void LLPrefsVoice::onClickDeviceSettingsBtn(void* user_data) | 266 | void 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 | } |