MAINT-8431 FIXED HTTP URL in the object name is represented as a hyperlink in inventory offer

master
maxim_productengine 2018-04-03 11:24:02 +03:00
parent 1dd6958220
commit 0b37538cd2
1 changed files with 2 additions and 2 deletions

View File

@ -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);