Matched V2 chat header context menu behavior with RLVa default: For names that are already visible it's always possible to open the profile, even if shownames is disallowed

meow-7.2.2
Ansariel 2014-02-09 14:44:43 +01:00
parent 3924659fc7
commit da88940ed7
1 changed files with 4 additions and 2 deletions

View File

@ -656,8 +656,10 @@ protected:
}
else
{
menu->setItemEnabled("Send IM", FSCommon::checkIsActionEnabled(mAvatarID, FS_RGSTR_ACT_SEND_IM));
menu->setItemEnabled("Show Profile", FSCommon::checkIsActionEnabled(mAvatarID, FS_RGSTR_ACT_SHOW_PROFILE));
if (mSessionID == LLIMMgr::computeSessionID(IM_NOTHING_SPECIAL, mAvatarID))
{
menu->setItemVisible("Send IM", false);
}
menu->setItemEnabled("Teleport to", FSCommon::checkIsActionEnabled(mAvatarID, FS_RGSTR_ACT_TELEPORT_TO));
menu->setItemEnabled("Offer Teleport", LLAvatarActions::canOfferTeleport(mAvatarID));
menu->setItemEnabled("Request Teleport", LLAvatarActions::canOfferTeleport(mAvatarID));