diff options
author | thickbrick | 2010-11-30 16:53:55 +0200 |
---|---|---|
committer | thickbrick | 2010-11-30 16:53:55 +0200 |
commit | a6ada6652524fc2b708bdae82ca3b5cb44bbbb2d (patch) | |
tree | 335c24ea130f14ba9a00fba6e47014bd96e988ed /linden/indra/newview/llfloaterpreference.cpp | |
parent | Fix #729: Some PNG images lose alpha channel (diff) | |
download | meta-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.cpp | 14 |
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 | ||
365 | void LLPreferenceCore::updateIsLoggedIn(bool enable) | ||
366 | { | ||
367 | mPrefsIM->preparePerAccountPrefs(enable); | ||
368 | } | ||
369 | |||
365 | void LLPreferenceCore::refreshEnabledGraphics() | 370 | void 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 | ||
546 | void LLFloaterPreference::updateIsLoggedIn(bool enable) | ||
547 | { | ||
548 | if(sInstance && sInstance->mPreferenceCore) | ||
549 | { | ||
550 | sInstance->mPreferenceCore->updateIsLoggedIn(enable); | ||
551 | } | ||
552 | } | ||
553 | |||
540 | void LLFloaterPreference::refreshEnabledGraphics() | 554 | void LLFloaterPreference::refreshEnabledGraphics() |
541 | { | 555 | { |
542 | sInstance->mPreferenceCore->refreshEnabledGraphics(); | 556 | sInstance->mPreferenceCore->refreshEnabledGraphics(); |