When a profile is being reused, disable partner info button
This commit is contained in:
@@ -169,6 +169,8 @@ void LLPanelAvatarSecondLife::clearControls()
|
|||||||
|
|
||||||
childSetTextArg("partner_edit", "[NAME]", LLStringUtil::null);
|
childSetTextArg("partner_edit", "[NAME]", LLStringUtil::null);
|
||||||
mPartnerID = LLUUID::null;
|
mPartnerID = LLUUID::null;
|
||||||
|
if (LLUICtrl* ctrl = getChild<LLUICtrl>("partner_info"))
|
||||||
|
ctrl->setEnabled(mPartnerID.notNull());
|
||||||
|
|
||||||
getChild<LLScrollListCtrl>("groups")->deleteAllItems();
|
getChild<LLScrollListCtrl>("groups")->deleteAllItems();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user