Skip to content

Commit 58420b8

Browse files
committed
#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.
1 parent de73d0f commit 58420b8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

indra/newview/llfloaterworldmap.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,14 +1694,15 @@ void LLFloaterWorldMap::updateSims(bool found_null_sim)
16941694
if (!match.isUndefined())
16951695
{
16961696
mSearchResults->selectByValue(match);
1697+
mSearchResults->setFocus(true);
1698+
onCommitSearchResult();
16971699
}
1698-
// else select first found item
1700+
// else let user decide
16991701
else
17001702
{
1701-
mSearchResults->selectFirstItem();
1703+
mSearchResults->operateOnAll(LLCtrlListInterface::OP_DESELECT);
1704+
mSearchResults->setFocus(true);
17021705
}
1703-
mSearchResults->setFocus(true);
1704-
onCommitSearchResult();
17051706
}
17061707
else
17071708
{

0 commit comments

Comments
 (0)