diff options
author | Oz Linden <oz@lindenlab.com> | 2011-06-29 12:10:03 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-06-29 12:10:03 -0400 |
commit | 290423764dc48e70205cc0d28187d9d8fe3c8dff (patch) | |
tree | 89a5814cb8aa25d1ead942b5e0221df5e7e832fe /indra/newview/llfloaterworldmap.cpp | |
parent | b5be90d0d2f26792f0044286f9b64126446dc101 (diff) | |
parent | a300902494f76b9542c3978c2ca80726cefbc942 (diff) |
merge out latest viewer-development
Diffstat (limited to 'indra/newview/llfloaterworldmap.cpp')
-rwxr-xr-x | indra/newview/llfloaterworldmap.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/indra/newview/llfloaterworldmap.cpp b/indra/newview/llfloaterworldmap.cpp index f8a4ce7ad0..b3910982d1 100755 --- a/indra/newview/llfloaterworldmap.cpp +++ b/indra/newview/llfloaterworldmap.cpp @@ -1527,17 +1527,24 @@ void LLFloaterWorldMap::updateSims(bool found_null_sim) mCompletingRegionName = ""; } - // if match found, highlight it and go - if (!match.isUndefined()) + if (num_results > 0) { - list->selectByValue(match); + // if match found, highlight it and go + if (!match.isUndefined()) + { + list->selectByValue(match); + } + // else select first found item + else + { + list->selectFirstItem(); + } getChild<LLUICtrl>("search_results")->setFocus(TRUE); onCommitSearchResult(); } - - // if we found nothing, say "none" - if (num_results == 0) + else { + // if we found nothing, say "none" list->setCommentText(LLTrans::getString("worldmap_results_none_found")); list->operateOnAll(LLCtrlListInterface::OP_DESELECT); } |