summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-07-09 18:54:06 +0300
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-07-09 21:18:25 +0300
commit58420b8e63d2f5ac6a0ebe858a34061b16c9c16b (patch)
treea7c44124985d4c165414ecf0c36e356e0428ac9e
parentde73d0f0093a5f5f26d0b36ecab0b4d1717e504a (diff)
#4339 World Map Find button shouldn't autocomplete
Either don't track (go) or implement trackSearch onCommitSearchResult() tracks location and 'autocompletes' as it is meant for selecting and applying items from search list.
-rwxr-xr-xindra/newview/llfloaterworldmap.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indra/newview/llfloaterworldmap.cpp b/indra/newview/llfloaterworldmap.cpp
index c70058145a..565642e683 100755
--- a/indra/newview/llfloaterworldmap.cpp
+++ b/indra/newview/llfloaterworldmap.cpp
@@ -1694,14 +1694,15 @@ void LLFloaterWorldMap::updateSims(bool found_null_sim)
if (!match.isUndefined())
{
mSearchResults->selectByValue(match);
+ mSearchResults->setFocus(true);
+ onCommitSearchResult();
}
- // else select first found item
+ // else let user decide
else
{
- mSearchResults->selectFirstItem();
+ mSearchResults->operateOnAll(LLCtrlListInterface::OP_DESELECT);
+ mSearchResults->setFocus(true);
}
- mSearchResults->setFocus(true);
- onCommitSearchResult();
}
else
{