summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2010-03-18 10:19:18 -0400
committerLoren Shih <seraph@lindenlab.com>2010-03-18 10:19:18 -0400
commitc86f61fd313a9f64dd0f1c5d100f39d6a3cb8eb0 (patch)
treebd2064d723a9596b45ce2df3c33f0556cf01a681 /indra/llui
parent896b88063ed0e08362c9e277e7ef8aba5afef0db (diff)
parenta3a4235a8904cf4d6e565c82d5d90d8a64c15180 (diff)
automated merge viewer2.0->viewer2.0
Diffstat (limited to 'indra/llui')
-rw-r--r--indra/llui/llradiogroup.cpp8
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;
}