diff options
author | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:27 -0500 |
commit | a8a62201ba762e98dff92cf49033e577fc34d8d4 (patch) | |
tree | 11f8513c5cdc222f2fac0c93eb724c089803c200 /linden/indra/newview/llprefsvoice.cpp | |
parent | Second Life viewer sources 1.18.6.4-RC (diff) | |
download | meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.zip meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.gz meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.bz2 meta-impy-a8a62201ba762e98dff92cf49033e577fc34d8d4.tar.xz |
Second Life viewer sources 1.19.0.0
Diffstat (limited to 'linden/indra/newview/llprefsvoice.cpp')
-rw-r--r-- | linden/indra/newview/llprefsvoice.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/linden/indra/newview/llprefsvoice.cpp b/linden/indra/newview/llprefsvoice.cpp index a0d5ed3..33a3cec 100644 --- a/linden/indra/newview/llprefsvoice.cpp +++ b/linden/indra/newview/llprefsvoice.cpp | |||
@@ -13,12 +13,12 @@ | |||
13 | * ("GPL"), unless you have obtained a separate licensing agreement | 13 | * ("GPL"), unless you have obtained a separate licensing agreement |
14 | * ("Other License"), formally executed by you and Linden Lab. Terms of | 14 | * ("Other License"), formally executed by you and Linden Lab. Terms of |
15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or | 15 | * the GPL can be found in doc/GPL-license.txt in this distribution, or |
16 | * online at http://secondlife.com/developers/opensource/gplv2 | 16 | * online at http://secondlifegrid.net/programs/open_source/licensing/gplv2 |
17 | * | 17 | * |
18 | * There are special exceptions to the terms and conditions of the GPL as | 18 | * There are special exceptions to the terms and conditions of the GPL as |
19 | * it is applied to this Source Code. View the full text of the exception | 19 | * it is applied to this Source Code. View the full text of the exception |
20 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | * online at http://secondlife.com/developers/opensource/flossexception | 21 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception |
22 | * | 22 | * |
23 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
24 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -102,7 +102,7 @@ void LLPrefsVoiceLogic::init() | |||
102 | mCtrlEarLocation->selectByValue(LLSD(gSavedSettings.getS32("VoiceEarLocation"))); | 102 | mCtrlEarLocation->selectByValue(LLSD(gSavedSettings.getS32("VoiceEarLocation"))); |
103 | mPanel->childSetCommitCallback("ear_location", onEarLocationCommit, this ); | 103 | mPanel->childSetCommitCallback("ear_location", onEarLocationCommit, this ); |
104 | 104 | ||
105 | mPanel->childSetAction("launch_voice_wizard_button", onClickLaunchWizard, this); | 105 | mPanel->childSetAction("launch_voice_wizard_button", onClickLaunchWizard, mPanel); |
106 | mPanel->childSetAction("set_voice_hotkey_button", onClickSetKey, this); | 106 | mPanel->childSetAction("set_voice_hotkey_button", onClickSetKey, this); |
107 | mPanel->childSetAction("set_voice_middlemouse_button", onClickSetMiddleMouse, this); | 107 | mPanel->childSetAction("set_voice_middlemouse_button", onClickSetMiddleMouse, this); |
108 | 108 | ||
@@ -147,14 +147,20 @@ void LLPrefsVoiceLogic::onEarLocationCommit(LLUICtrl* ctrl, void* user_data) | |||
147 | LLCtrlSelectionInterface* interfacep = ctrl->getSelectionInterface(); | 147 | LLCtrlSelectionInterface* interfacep = ctrl->getSelectionInterface(); |
148 | if (interfacep) | 148 | if (interfacep) |
149 | { | 149 | { |
150 | gSavedSettings.setS32("VoiceEarLocation", interfacep->getSimpleSelectedValue().asInteger()); | 150 | gSavedSettings.setS32("VoiceEarLocation", interfacep->getSelectedValue().asInteger()); |
151 | } | 151 | } |
152 | } | 152 | } |
153 | 153 | ||
154 | //static | 154 | //static |
155 | void LLPrefsVoiceLogic::onClickLaunchWizard(void* user_data) | 155 | void LLPrefsVoiceLogic::onClickLaunchWizard(void* user_data) |
156 | { | 156 | { |
157 | LLFloaterVoiceWizard::showInstance(); | 157 | LLPrefsVoice* prefs = (LLPrefsVoice*)user_data; |
158 | LLFloaterVoiceWizard* floaterp = LLFloaterVoiceWizard::showInstance(); | ||
159 | LLFloater* parent_floater = gFloaterView->getParentFloater(prefs); | ||
160 | if (parent_floater) | ||
161 | { | ||
162 | parent_floater->addDependentFloater(floaterp, FALSE); | ||
163 | } | ||
158 | } | 164 | } |
159 | 165 | ||
160 | // static | 166 | // static |