diff options
author | Jacek Antonelli | 2009-04-30 13:04:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-30 13:07:16 -0500 |
commit | ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch) | |
tree | 8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llfloaterpreference.cpp | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2 meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz |
Second Life viewer sources 1.23.0-RC
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterpreference.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp index 5451ca0..17a59cc 100644 --- a/linden/indra/newview/llfloaterpreference.cpp +++ b/linden/indra/newview/llfloaterpreference.cpp | |||
@@ -1,6 +1,6 @@ | |||
1 | /** | 1 | /** |
2 | * @file llfloaterpreference.cpp | 2 | * @file llfloaterpreference.cpp |
3 | * @brief LLPreferenceCore class implementation | 3 | * @brief Global preferences with and without persistence. |
4 | * | 4 | * |
5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ | 5 | * $LicenseInfo:firstyear=2002&license=viewergpl$ |
6 | * | 6 | * |
@@ -17,7 +17,8 @@ | |||
17 | * There are special exceptions to the terms and conditions of the GPL as | 17 | * There are special exceptions to the terms and conditions of the GPL as |
18 | * it is applied to this Source Code. View the full text of the exception | 18 | * it is applied to this Source Code. View the full text of the exception |
19 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 19 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
20 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 20 | * online at |
21 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
21 | * | 22 | * |
22 | * By copying, modifying or distributing this software, you acknowledge | 23 | * By copying, modifying or distributing this software, you acknowledge |
23 | * that you have read and understood your obligations described above, | 24 | * that you have read and understood your obligations described above, |
@@ -89,9 +90,10 @@ LLFloaterPreference* LLFloaterPreference::sInstance = NULL; | |||
89 | class LLPreferencesHandler : public LLCommandHandler | 90 | class LLPreferencesHandler : public LLCommandHandler |
90 | { | 91 | { |
91 | public: | 92 | public: |
92 | // don't allow from external browsers | 93 | // requires trusted browser |
93 | LLPreferencesHandler() : LLCommandHandler("preferences", false) { } | 94 | LLPreferencesHandler() : LLCommandHandler("preferences", true) { } |
94 | bool handle(const LLSD& tokens, const LLSD& queryMap) | 95 | bool handle(const LLSD& tokens, const LLSD& query_map, |
96 | LLWebBrowserCtrl* web) | ||
95 | { | 97 | { |
96 | LLFloaterPreference::show(NULL); | 98 | LLFloaterPreference::show(NULL); |
97 | return true; | 99 | return true; |
@@ -259,6 +261,7 @@ void LLPreferenceCore::apply() | |||
259 | mInputPanel->apply(); | 261 | mInputPanel->apply(); |
260 | mNetworkPanel->apply(); | 262 | mNetworkPanel->apply(); |
261 | mDisplayPanel->apply(); | 263 | mDisplayPanel->apply(); |
264 | mAudioPanel->apply(); | ||
262 | mPrefsChat->apply(); | 265 | mPrefsChat->apply(); |
263 | mPrefsVoice->apply(); | 266 | mPrefsVoice->apply(); |
264 | mPrefsIM->apply(); | 267 | mPrefsIM->apply(); |
@@ -477,6 +480,7 @@ void LLFloaterPreference::onBtnApply( void* userdata ) | |||
477 | void LLFloaterPreference::onClose(bool app_quitting) | 480 | void LLFloaterPreference::onClose(bool app_quitting) |
478 | { | 481 | { |
479 | LLPanelLogin::setAlwaysRefresh(false); | 482 | LLPanelLogin::setAlwaysRefresh(false); |
483 | cancel(); // will be a no-op if OK or apply was performed just prior. | ||
480 | LLFloater::onClose(app_quitting); | 484 | LLFloater::onClose(app_quitting); |
481 | } | 485 | } |
482 | 486 | ||
@@ -493,8 +497,7 @@ void LLFloaterPreference::onBtnCancel( void* userdata ) | |||
493 | cur_focus->onCommit(); | 497 | cur_focus->onCommit(); |
494 | } | 498 | } |
495 | } | 499 | } |
496 | fp->cancel(); | 500 | fp->close(); // side effect will also cancel any unsaved changes. |
497 | fp->close(); | ||
498 | } | 501 | } |
499 | 502 | ||
500 | 503 | ||