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.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp
index 0f81be6..c99d75d 100644
--- a/linden/indra/newview/llfloaterpreference.cpp
+++ b/linden/indra/newview/llfloaterpreference.cpp
@@ -365,6 +365,7 @@ void LLPreferenceCore::setPersonalInfo(const std::string& visibility, bool im_vi
365void LLPreferenceCore::updateIsLoggedIn(bool enable) 365void LLPreferenceCore::updateIsLoggedIn(bool enable)
366{ 366{
367 mPrefsIM->preparePerAccountPrefs(enable); 367 mPrefsIM->preparePerAccountPrefs(enable);
368 mAudioPanel->updateIsLoggedIn(enable);
368} 369}
369 370
370void LLPreferenceCore::refreshEnabledGraphics() 371void LLPreferenceCore::refreshEnabledGraphics()
@@ -456,6 +457,25 @@ void LLFloaterPreference::show(void*)
456} 457}
457 458
458 459
460// static
461void LLFloaterPreference::onClickResetPrefs(void* user_data)
462{
463 LLFloaterPreference* self = (LLFloaterPreference*)user_data;
464 LLNotifications::instance().add("ConfirmResetAllPreferences", LLSD(), LLSD(), boost::bind(callbackReset, _1, _2, self));
465}
466
467// static
468bool LLFloaterPreference::callbackReset(const LLSD& notification, const LLSD& response, LLFloaterPreference *self)
469{
470 S32 option = LLNotification::getSelectedOption(notification, response);
471 if ( option == 0 )
472 {
473 gSavedSettings.setBOOL("ResetAllPreferences", TRUE);
474 }
475 return false;
476}
477
478
459// static 479// static
460void LLFloaterPreference::onBtnOK( void* userdata ) 480void LLFloaterPreference::onBtnOK( void* userdata )
461{ 481{