On second thought, clicking a name editor should open up the profile, too

The initial thinking behind this decision was that people may want to
select, if they do, they can right click for this very rare use case.
This commit is contained in:
Liru Færs
2019-10-10 12:37:47 -04:00
parent 2f72ed2e80
commit c6089637e7
6 changed files with 27 additions and 18 deletions

View File

@@ -34,18 +34,13 @@
#include "llnamebox.h"
#include "llcachename.h"
#include "llavataractions.h"
#include "llgroupactions.h"
static LLRegisterWidget<LLNameBox> r("name_box");
LLNameBox::LLNameBox(const std::string& name)
: LLNameUI()
, LLTextBox(name, LLRect(), LLStringUtil::null, nullptr, TRUE)
{
setClickedCallback(boost::bind(&LLNameBox::showProfile, this));
setClickedCallback(boost::bind(&LLNameUI::showProfile, this));
}
void LLNameBox::displayAsLink(bool link)
@@ -55,16 +50,6 @@ void LLNameBox::displayAsLink(bool link)
setDisabledColor(link ? color : LLUI::sColorsGroup->getColor("LabelDisabledColor"));
}
void LLNameBox::showProfile()
{
if (!mAllowInteract) return;
if (mIsGroup)
LLGroupActions::show(mNameID);
else
LLAvatarActions::showProfile(mNameID);
}
// virtual
BOOL LLNameBox::handleRightMouseDown(S32 x, S32 y, MASK mask)
{