aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorthickbrick2010-11-30 16:53:55 +0200
committerthickbrick2010-11-30 16:53:55 +0200
commita6ada6652524fc2b708bdae82ca3b5cb44bbbb2d (patch)
tree335c24ea130f14ba9a00fba6e47014bd96e988ed /linden/indra/newview/llfloaterpreference.cpp
parentFix #729: Some PNG images lose alpha channel (diff)
downloadmeta-impy-a6ada6652524fc2b708bdae82ca3b5cb44bbbb2d.zip
meta-impy-a6ada6652524fc2b708bdae82ca3b5cb44bbbb2d.tar.gz
meta-impy-a6ada6652524fc2b708bdae82ca3b5cb44bbbb2d.tar.bz2
meta-impy-a6ada6652524fc2b708bdae82ca3b5cb44bbbb2d.tar.xz
Fix #673: IMs & Logging prefs don't persist
Enable per-account settings only after we have an account. Also, make settings that are saved locally not depend on UserInfoReply being received.
Diffstat (limited to 'linden/indra/newview/llfloaterpreference.cpp')
-rw-r--r--linden/indra/newview/llfloaterpreference.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/linden/indra/newview/llfloaterpreference.cpp b/linden/indra/newview/llfloaterpreference.cpp
index 2fe4b4d..0f81be6 100644
--- a/linden/indra/newview/llfloaterpreference.cpp
+++ b/linden/indra/newview/llfloaterpreference.cpp
@@ -362,6 +362,11 @@ void LLPreferenceCore::setPersonalInfo(const std::string& visibility, bool im_vi
362 mPrefsIM->setPersonalInfo(visibility, im_via_email, email); 362 mPrefsIM->setPersonalInfo(visibility, im_via_email, email);
363} 363}
364 364
365void LLPreferenceCore::updateIsLoggedIn(bool enable)
366{
367 mPrefsIM->preparePerAccountPrefs(enable);
368}
369
365void LLPreferenceCore::refreshEnabledGraphics() 370void LLPreferenceCore::refreshEnabledGraphics()
366{ 371{
367 LLFloaterHardwareSettings::instance()->refreshEnabledState(); 372 LLFloaterHardwareSettings::instance()->refreshEnabledState();
@@ -537,6 +542,15 @@ void LLFloaterPreference::updateUserInfo(const std::string& visibility, bool im_
537 } 542 }
538} 543}
539 544
545// static
546void LLFloaterPreference::updateIsLoggedIn(bool enable)
547{
548 if(sInstance && sInstance->mPreferenceCore)
549 {
550 sInstance->mPreferenceCore->updateIsLoggedIn(enable);
551 }
552}
553
540void LLFloaterPreference::refreshEnabledGraphics() 554void LLFloaterPreference::refreshEnabledGraphics()
541{ 555{
542 sInstance->mPreferenceCore->refreshEnabledGraphics(); 556 sInstance->mPreferenceCore->refreshEnabledGraphics();