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

@@ -33,7 +33,7 @@
#include "llviewerprecompiledheaders.h"
#include "llnameeditor.h"
#include "llcachename.h"
#include "llmenugl.h"
#include "lluictrlfactory.h"
@@ -56,6 +56,17 @@ LLNameEditor::LLNameEditor(const std::string& name, const LLRect& rect,
else setText(mInitialValue);
}
// virtual
BOOL LLNameEditor::handleMouseDown(S32 x, S32 y, MASK mask)
{
if (mAllowInteract)
{
showProfile();
return true;
}
else return LLLineEditor::handleMouseDown(x, y, mask);
}
// virtual
BOOL LLNameEditor::handleRightMouseDown(S32 x, S32 y, MASK mask)
{