summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2018-04-03 11:24:02 +0300
committermaxim_productengine <mnikolenko@productengine.com>2018-04-03 11:24:02 +0300
commit0b37538cd2a9157b4ba067f1f85ed86ca3a202fc (patch)
tree7e3257772d679f8e7c5a9b60677761ed44652fcb /indra
parent1dd695822098608fd47c5a816fea6c62fcd565aa (diff)
MAINT-8431 FIXED HTTP URL in the object name is represented as a hyperlink in inventory offer
Diffstat (limited to 'indra')
-rw-r--r--indra/llui/lltexteditor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 1a49b94c23..134b76c720 100644
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -2493,11 +2493,11 @@ void LLTextEditor::updateLinkSegments()
}
}
}
-
+
// if the link's label (what the user can edit) is a valid Url,
// then update the link's HREF to be the same as the label text.
// This lets users edit Urls in-place.
- if (LLUrlRegistry::instance().hasUrl(url_label))
+ if (acceptsTextInput() && LLUrlRegistry::instance().hasUrl(url_label))
{
std::string new_url = wstring_to_utf8str(url_label);
LLStringUtil::trim(new_url);