Wooops, fix minor bug introduced in the conference thing.

This commit is contained in:
Lirusaito
2019-01-09 22:03:20 -05:00
parent 9a424ff264
commit aef77312aa

View File

@@ -524,11 +524,14 @@ BOOL LLFloaterIMPanel::postBuild()
if (LLComboBox* flyout = findChild<LLComboBox>("instant_message_flyout"))
{
flyout->setCommitCallback(boost::bind(&LLFloaterIMPanel::onFlyoutCommit, this, flyout, _2));
if (is_agent_mappable(mOtherParticipantUUID))
flyout->add(getString("find on map"), -2);
addDynamics(flyout);
if (gObjectList.findAvatar(mOtherParticipantUUID))
flyout->add(getString("focus"), -3);
if (mSessionType == P2P_SESSION)
{
if (is_agent_mappable(mOtherParticipantUUID))
flyout->add(getString("find on map"), -2);
addDynamics(flyout);
if (gObjectList.findAvatar(mOtherParticipantUUID))
flyout->add(getString("focus"), -3);
}
}
if (LLUICtrl* ctrl = findChild<LLUICtrl>("tp_btn"))
ctrl->setCommitCallback(boost::bind(static_cast<void(*)(const LLUUID&)>(LLAvatarActions::offerTeleport), mOtherParticipantUUID));