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