diff options
author | James Cook <james@lindenlab.com> | 2009-12-31 14:31:58 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2009-12-31 14:31:58 -0800 |
commit | eb5a76996a1b1ce2ef30b6106287caae998dcc85 (patch) | |
tree | c796af5a77c8ebfa7d9d09709c0b179e721490c8 /indra/newview/lllocationinputctrl.cpp | |
parent | 4e23ae312f0ab59c0c8c5b55c6c8450adf7d7f82 (diff) | |
parent | 6f66ec64b9e360a002a6d658327b72aaaab9325a (diff) |
Merge (viewer-2-0 into gooey)
Diffstat (limited to 'indra/newview/lllocationinputctrl.cpp')
-rw-r--r-- | indra/newview/lllocationinputctrl.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/lllocationinputctrl.cpp b/indra/newview/lllocationinputctrl.cpp index 98ca339f0c..404e266806 100644 --- a/indra/newview/lllocationinputctrl.cpp +++ b/indra/newview/lllocationinputctrl.cpp @@ -634,6 +634,8 @@ void LLLocationInputCtrl::refreshLocation() { location_name = "???"; } + // store human-readable location to compare it in changeLocationPresentation() + mHumanReadableLocation = location_name; setText(location_name); } @@ -823,11 +825,11 @@ void LLLocationInputCtrl::updateWidgetlayout() void LLLocationInputCtrl::changeLocationPresentation() { - //change location presentation only if user does not select anything and + //change location presentation only if user does not select/past anything and //human-readable region name is being displayed std::string text = mTextEntry->getText(); LLStringUtil::trim(text); - if(mTextEntry && !mTextEntry->hasSelection() && !LLSLURL::isSLURL(text)) + if(mTextEntry && !mTextEntry->hasSelection() && text == mHumanReadableLocation ) { //needs unescaped one mTextEntry->setText(LLAgentUI::buildSLURL(false)); |