summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterpreference.cpp
diff options
context:
space:
mode:
authorJiao Li <angela@lindenlab.com>2009-09-15 09:24:35 +0000
committerJiao Li <angela@lindenlab.com>2009-09-15 09:24:35 +0000
commitf9326784941c9641ae7b455f76f5bc5953a8cae8 (patch)
treee69a09152a75c0cb22f94107e81f8e572299dc9d /indra/newview/llfloaterpreference.cpp
parentd992d38fba5ed2a79f90583bd5d15a26f00a99ee (diff)
EXT-804 Preferences > General does not show the static text, or combo_box for Maturity rating -- to be reviewed
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rw-r--r--indra/newview/llfloaterpreference.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp
index 2dc96d1fb3..fac12d197e 100644
--- a/indra/newview/llfloaterpreference.cpp
+++ b/indra/newview/llfloaterpreference.cpp
@@ -528,25 +528,26 @@ void LLFloaterPreference::onOpen(const LLSD& key)
bool canChoose = gAgent.getID().notNull() &&
(gAgent.isMature() || gAgent.isGodlike());
+ LLComboBox* maturity_combo = getChild<LLComboBox>("maturity_desired_combobox");
+
if (canChoose)
{
// if they're not adult or a god, they shouldn't see the adult selection, so delete it
if (!gAgent.isAdult() && !gAgent.isGodlike())
{
- LLComboBox* pMaturityCombo = getChild<LLComboBox>("maturity_desired_combobox");
// we're going to remove the adult entry from the combo. This obviously depends
// on the order of items in the XML file, but there doesn't seem to be a reasonable
// way to depend on the field in XML called 'name'.
- pMaturityCombo->remove(0);
+ maturity_combo->remove(0);
}
childSetVisible("maturity_desired_combobox", true);
- childSetVisible("maturity_desired_prompt", true);
+ childSetVisible("maturity_desired_textbox", false);
}
else
{
- childSetVisible("maturity_desired_prompt", false);
+ childSetText("maturity_desired_textbox", maturity_combo->getSelectedItemLabel());
childSetVisible("maturity_desired_combobox", false);
}