summaryrefslogtreecommitdiff
path: root/indra/llui/lltextbase.cpp
diff options
context:
space:
mode:
authorRichard Nelson <richard@lindenlab.com>2009-10-16 01:49:34 +0000
committerRichard Nelson <richard@lindenlab.com>2009-10-16 01:49:34 +0000
commitf8997965ebf7bcd5de374d23dfc1a2939870b1af (patch)
tree5b360a15c77234b556a2426b614ea5257065dbff /indra/llui/lltextbase.cpp
parentddef4292bd7446b7c8f7db76d03795f5d10a0788 (diff)
fixed first click on SLURL not spawning inspector by handling mouse down when clicking on url
reviewed by Mani
Diffstat (limited to 'indra/llui/lltextbase.cpp')
-rw-r--r--indra/llui/lltextbase.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/llui/lltextbase.cpp b/indra/llui/lltextbase.cpp
index 3c5213a0b3..4cf8d76827 100644
--- a/indra/llui/lltextbase.cpp
+++ b/indra/llui/lltextbase.cpp
@@ -2291,6 +2291,17 @@ BOOL LLNormalTextSegment::handleRightMouseDown(S32 x, S32 y, MASK mask)
return FALSE;
}
+BOOL LLNormalTextSegment::handleMouseDown(S32 x, S32 y, MASK mask)
+{
+ if (getStyle() && getStyle()->isLink())
+ {
+ // eat mouse down event on hyperlinks, so we get the mouse up
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
BOOL LLNormalTextSegment::handleMouseUp(S32 x, S32 y, MASK mask)
{
if (getStyle() && getStyle()->isLink())