diff options
author | callum_linden <none@none> | 2014-03-28 15:36:50 -0700 |
---|---|---|
committer | callum_linden <none@none> | 2014-03-28 15:36:50 -0700 |
commit | ef095034d17bfa71dbd8525fcdda8a520bd7e20f (patch) | |
tree | 63b09aab669b1cc2acb3bb02c5ca1910ba9f0c09 /indra/newview/llpanellogin.cpp | |
parent | 62d0ad23f905100ee823cb11bc6fa95ebcd5cb98 (diff) |
MAINT-3880 FIX Show favorite landmarks on login screen checkbox, is checked in preferences after being unchecked
Diffstat (limited to 'indra/newview/llpanellogin.cpp')
-rwxr-xr-x | indra/newview/llpanellogin.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/indra/newview/llpanellogin.cpp b/indra/newview/llpanellogin.cpp index 8bd5602f48..9baa443b55 100755 --- a/indra/newview/llpanellogin.cpp +++ b/indra/newview/llpanellogin.cpp @@ -176,7 +176,8 @@ LLPanelLogin::LLPanelLogin(const LLRect &rect, mUsernameLength(0), mPasswordLength(0), mLocationLength(0), - mFavoriteSelected(false) + mFavoriteSelected(false), + mShowFavorites(false) { setBackgroundVisible(FALSE); setBackgroundOpaque(TRUE); @@ -317,7 +318,8 @@ void LLPanelLogin::addUsersWithFavoritesToUsername() LLSD fav_llsd; llifstream file; file.open(filename); - if (!file.is_open()) return; + if (!file.is_open()) + return; LLSDSerialize::fromXML(fav_llsd, file); for (LLSD::map_const_iterator iter = fav_llsd.beginMap(); iter != fav_llsd.endMap(); ++iter) @@ -350,6 +352,7 @@ void LLPanelLogin::addFavoritesToStartLocation() file.open(filename); if (!file.is_open()) return; LLSDSerialize::fromXML(fav_llsd, file); + for (LLSD::map_const_iterator iter = fav_llsd.beginMap(); iter != fav_llsd.endMap(); ++iter) { @@ -373,6 +376,7 @@ void LLPanelLogin::addFavoritesToStartLocation() std::string value = (*iter1)["slurl"].asString(); if(label != "" && value != "") { + mShowFavorites = true; combo->add(label, value); } } @@ -1119,3 +1123,9 @@ void LLPanelLogin::onLocationSLURL() LLStartUp::setStartSLURL(location); // calls onUpdateStartSLURL, above } + +// static +bool LLPanelLogin::getShowFavorites() +{ + return sInstance->mShowFavorites; +} |