Fix name ui hover handling bypassing necessary base call. Woops.

This commit is contained in:
Liru Færs
2019-11-03 18:33:03 -05:00
parent 82050a5e46
commit f81f374ab9
2 changed files with 7 additions and 5 deletions

View File

@@ -70,12 +70,13 @@ BOOL LLNameBox::handleRightMouseDown(S32 x, S32 y, MASK mask)
// virtual
BOOL LLNameBox::handleHover(S32 x, S32 y, MASK mask)
{
auto handled = LLTextBox::handleHover(x, y, mask);
if (mAllowInteract)
{
getWindow()->setCursor(UI_CURSOR_HAND);
return true;
handled = true;
}
return LLTextBox::handleHover(x, y, mask);
return handled;
}
// virtual

View File

@@ -94,12 +94,13 @@ BOOL LLNameEditor::handleRightMouseDown(S32 x, S32 y, MASK mask)
// virtual
BOOL LLNameEditor::handleHover(S32 x, S32 y, MASK mask)
{
if (mAllowInteract)
auto handled = LLLineEditor::handleHover(x, y, mask);
if (mAllowInteract && mClickForProfile && !mIsSelecting)
{
getWindow()->setCursor(UI_CURSOR_HAND);
return true;
handled = true;
}
return LLLineEditor::handleHover(x, y, mask);
return handled;
}
void LLNameEditor::displayAsLink(bool link)