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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user