diff options
author | Paul Guslisty <pguslisty@productengine.com> | 2011-01-10 19:15:17 +0200 |
---|---|---|
committer | Paul Guslisty <pguslisty@productengine.com> | 2011-01-10 19:15:17 +0200 |
commit | 410359b48d535f97043ded7542fb4c8c46c450f2 (patch) | |
tree | 23647d2af170779f75aec78ae6de4adc5068bd4c /indra | |
parent | 964e981458234aed37252a7b484f6f6765fff50d (diff) |
STORM-370 FIXED Human-readable name of region disappears from Location Bar after pressing ESC
- When location input control loses focus setting cursor to 0 to show the left edge of the text.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/lllocationinputctrl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp index 1527f8f4c9..55164f6094 100644 --- a/indra/newview/lllocationinputctrl.cpp +++ b/indra/newview/lllocationinputctrl.cpp @@ -547,6 +547,10 @@ void LLLocationInputCtrl::onFocusLost() { LLUICtrl::onFocusLost(); refreshLocation(); + + // Setting cursor to 0 to show the left edge of the text. See STORM-370. + mTextEntry->setCursor(0); + if(mTextEntry->hasSelection()){ mTextEntry->deselect(); } |