diff options
author | Eli Linden <eli@lindenlab.com> | 2010-03-17 17:59:17 -0700 |
---|---|---|
committer | Eli Linden <eli@lindenlab.com> | 2010-03-17 17:59:17 -0700 |
commit | 0f5c779063bc2911a905c1ad7196671998b2156b (patch) | |
tree | 064a4d3abda421abf34d7d55132cb0a5026cc9db /indra | |
parent | c92dd09653fd02af6339b6cb467e0922fd8dac2b (diff) | |
parent | 19034f5cd7b5dade27e8c6843fba72ad4d46d696 (diff) |
Merge
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llui/llradiogroup.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/indra/llui/llradiogroup.cpp b/indra/llui/llradiogroup.cpp index 4087b484aa..e27792dc1d 100644 --- a/indra/llui/llradiogroup.cpp +++ b/indra/llui/llradiogroup.cpp @@ -106,7 +106,6 @@ LLRadioGroup::LLRadioGroup(const LLRadioGroup::Params& p) void LLRadioGroup::initFromParams(const Params& p) { - LLUICtrl::initFromParams(p); for (LLInitParam::ParamIterator<ItemParams>::const_iterator it = p.items().begin(); it != p.items().end(); ++it) @@ -124,6 +123,9 @@ void LLRadioGroup::initFromParams(const Params& p) LLRadioCtrl* item = LLUICtrlFactory::create<LLRadioCtrl>(item_params, this); mRadioButtons.push_back(item); } + + // call this *after* setting up mRadioButtons so we can handle setValue() calls + LLUICtrl::initFromParams(p); } @@ -138,10 +140,6 @@ BOOL LLRadioGroup::postBuild() { mRadioButtons[0]->setTabStop(true); } - if (mControlVariable) - { - setSelectedIndex(mControlVariable->getValue().asInteger()); - } return TRUE; } |