When a profile is being reused, disable partner info button

This commit is contained in:
Liru Færs
2019-10-09 17:23:41 -04:00
parent 98b3c8a812
commit 513a4fd16c

View File

@@ -169,6 +169,8 @@ void LLPanelAvatarSecondLife::clearControls()
childSetTextArg("partner_edit", "[NAME]", LLStringUtil::null);
mPartnerID = LLUUID::null;
if (LLUICtrl* ctrl = getChild<LLUICtrl>("partner_info"))
ctrl->setEnabled(mPartnerID.notNull());
getChild<LLScrollListCtrl>("groups")->deleteAllItems();
}