FIRE-20214: Text gets deselected upon avatar/group name received callback

master
Ansariel 2016-10-10 13:02:22 +02:00
parent 9800acf862
commit b658e3cce5
1 changed files with 7 additions and 1 deletions

View File

@ -2590,7 +2590,13 @@ void LLTextBase::replaceUrl(const std::string &url,
if (modified)
{
getViewModel()->setDisplay(text);
deselect();
// <FS:Ansariel> FIRE-20214: Text gets deselected upon avatar/group name received callback
//deselect();
// Make sure we're still within limits
S32 text_length = getLength();
mSelectionStart = llmin(mSelectionStart, text_length);
mSelectionEnd = llmin(mSelectionEnd, text_length);
// </FS:Ansariel>
setCursorPos(mCursorPos);
needsReflow();
}