More UI warnings fixup stuffs

This commit is contained in:
Lirusaito
2013-03-08 01:20:15 -05:00
parent bede980527
commit 06a73061ce
2 changed files with 4 additions and 3 deletions

View File

@@ -1327,7 +1327,8 @@ void LLPanelEditWearable::setUIPermissions(U32 perm_mask, BOOL is_complete)
childSetEnabled("Save", is_modifiable && is_complete);
childSetEnabled("Save As", is_copyable && is_complete);
childSetEnabled("sex radio", is_modifiable && is_complete);
if (LLView* view = findChild<LLView>("sex radio"))
view->setEnabled(is_modifiable && is_complete);
for_each_picker_ctrl_entry <LLTextureCtrl> (this, mType, boost::bind(set_enabled_texture_ctrl, is_copyable && is_modifiable && is_complete, _1, _2));
for_each_picker_ctrl_entry <LLColorSwatchCtrl> (this, mType, boost::bind(set_enabled_color_swatch_ctrl, is_modifiable && is_complete, _1, _2));
for(string_texture_index_map_t::iterator iter = mAlphaCheckbox2Index.begin();

View File

@@ -73,12 +73,12 @@ void wlfPanel_AdvSettings::build()
if (!gSavedSettings.getBOOL("wlfAdvSettingsPopup"))
{
LLUICtrlFactory::getInstance()->buildPanel(this, "wlfPanel_AdvSettings_expanded.xml", &getFactoryMap());
ButtonState = "arrow_up.tga";
ButtonState = "arrow_down.tga";
}
else
{
LLUICtrlFactory::getInstance()->buildPanel(this, "wlfPanel_AdvSettings.xml", &getFactoryMap());
ButtonState = "arrow_down.tga";
ButtonState = "arrow_up.tga";
}
getChild<LLButton>("expand")->setImageOverlay(ButtonState);
}