diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2013-07-17 11:30:09 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2013-07-17 11:30:09 -0400 |
commit | fd14c250b8aa7b2d512194b164646ff7f658bef3 (patch) | |
tree | 7e022b9a33182a35b4848a5237d9c3b1916e4b00 /indra/llui/llcombobox.cpp | |
parent | 2b3c1bd40d11b02cb097cb3dba7a661a4b528a91 (diff) |
CHOP-962: Preserve unrecognized user settings variables.
Change LLControlVariable::mPersist from bool to tri-state enum. Its 'true'
value used to mean "persist only if changed from default;" third state now
means "persist regardless of value." Add forcePersist() method to set that.
Replace isSaveValueDefault() method -- used only by logic to determine whether
to save the variable -- with shouldSave() method to encapsulate ALL that logic
rather than only part of it. shouldSave() recognizes PERSIST_ALWAYS state.
When loading an unrecognized control variable from a user settings file, use
forcePersist() to ensure that we later save that variable again.
Tweak one of the unit tests to adjust for new semantics.
Diffstat (limited to 'indra/llui/llcombobox.cpp')
0 files changed, 0 insertions, 0 deletions