aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirpeople.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:37 -0500
committerJacek Antonelli2008-08-15 23:45:37 -0500
commit31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch)
treec4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/newview/llpaneldirpeople.cpp
parentSecond Life viewer sources 1.19.1.1 (diff)
downloadmeta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz
Second Life viewer sources 1.19.1.2
Diffstat (limited to 'linden/indra/newview/llpaneldirpeople.cpp')
-rw-r--r--linden/indra/newview/llpaneldirpeople.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llpaneldirpeople.cpp b/linden/indra/newview/llpaneldirpeople.cpp
index 64cde2d..cae2bef 100644
--- a/linden/indra/newview/llpaneldirpeople.cpp
+++ b/linden/indra/newview/llpaneldirpeople.cpp
@@ -75,10 +75,12 @@ void LLPanelDirPeople::performQuery()
75 75
76 // filter short words out of the query string 76 // filter short words out of the query string
77 // and indidate if we did have to filter it 77 // and indidate if we did have to filter it
78 // The shortest username is 2 characters long.
79 const S32 SHORTEST_WORD_LEN = 2;
78 bool query_was_filtered = false; 80 bool query_was_filtered = false;
79 std::string query_string = LLPanelDirBrowser::filter_short_words( 81 std::string query_string = LLPanelDirBrowser::filterShortWords(
80 childGetValue("name").asString(), 82 childGetValue("name").asString(),
81 mMinSearchChars, 83 SHORTEST_WORD_LEN,
82 query_was_filtered ); 84 query_was_filtered );
83 85
84 // possible we threw away all the short words in the query so check length 86 // possible we threw away all the short words in the query so check length
@@ -93,7 +95,7 @@ void LLPanelDirPeople::performQuery()
93 { 95 {
94 LLString::format_map_t args; 96 LLString::format_map_t args;
95 args["[FINALQUERY]"] = query_string; 97 args["[FINALQUERY]"] = query_string;
96 gViewerWindow->alertXml("SeachFilteredOnShortWords"); 98 gViewerWindow->alertXml("SeachFilteredOnShortWords", args);
97 }; 99 };
98 100
99 setupNewSearch(); 101 setupNewSearch();