Fix Issue 590: Debug Settings parameters setting is seriously bugged

This commit is contained in:
Lirusaito
2013-01-11 15:50:47 -05:00
parent 2dda9499fa
commit a47dbf88bb
2 changed files with 10 additions and 3 deletions

View File

@@ -352,7 +352,14 @@ void LLFloaterSettingsDebug::updateControl()
bool_ctrl->setVisible(true);
if (!bool_ctrl->hasFocus())
{
bool_ctrl->setValue(sd.asInteger());
if (sd.asBoolean())
{
bool_ctrl->setValue(LLSD("TRUE"));
}
else
{
bool_ctrl->setValue(LLSD("FALSE"));
}
}
break;
case TYPE_STRING:

View File

@@ -8,10 +8,10 @@
name="comment_text" word_wrap="true" />
<radio_group bottom_delta="-48" draw_border="false" follows="bottom|left|right" height="36"
left="15" name="boolean_combo" visible="false">
<radio_item bottom="-18" height="15" name="TRUE" value="1">
<radio_item bottom="-18" height="15" name="TRUE" value="true">
True
</radio_item>
<radio_item bottom="-36" height="15" name="FALSE" value="0">
<radio_item bottom="-36" height="15" name="FALSE" value="">
False
</radio_item>
</radio_group>