summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorPaul Guslisty <pguslisty@productengine.com>2011-01-10 19:15:17 +0200
committerPaul Guslisty <pguslisty@productengine.com>2011-01-10 19:15:17 +0200
commit410359b48d535f97043ded7542fb4c8c46c450f2 (patch)
tree23647d2af170779f75aec78ae6de4adc5068bd4c /indra/newview
parent964e981458234aed37252a7b484f6f6765fff50d (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/newview')
-rw-r--r--indra/newview/lllocationinputctrl.cpp4
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();
}