aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirpeople.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llpaneldirpeople.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llpaneldirpeople.cpp')
-rw-r--r--linden/indra/newview/llpaneldirpeople.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llpaneldirpeople.cpp b/linden/indra/newview/llpaneldirpeople.cpp
index bca502a..64cde2d 100644
--- a/linden/indra/newview/llpaneldirpeople.cpp
+++ b/linden/indra/newview/llpaneldirpeople.cpp
@@ -32,6 +32,7 @@
32#include "llviewerprecompiledheaders.h" 32#include "llviewerprecompiledheaders.h"
33 33
34#include "llpaneldirpeople.h" 34#include "llpaneldirpeople.h"
35#include "llviewerwindow.h"
35 36
36// linden library includes 37// linden library includes
37#include "message.h" 38#include "message.h"
@@ -72,6 +73,29 @@ void LLPanelDirPeople::performQuery()
72 return; 73 return;
73 } 74 }
74 75
76 // filter short words out of the query string
77 // and indidate if we did have to filter it
78 bool query_was_filtered = false;
79 std::string query_string = LLPanelDirBrowser::filter_short_words(
80 childGetValue("name").asString(),
81 mMinSearchChars,
82 query_was_filtered );
83
84 // possible we threw away all the short words in the query so check length
85 if ( query_string.length() < mMinSearchChars )
86 {
87 gViewerWindow->alertXml("SeachFilteredOnShortWordsEmpty");
88 return;
89 };
90
91 // if we filtered something out, display a popup
92 if ( query_was_filtered )
93 {
94 LLString::format_map_t args;
95 args["[FINALQUERY]"] = query_string;
96 gViewerWindow->alertXml("SeachFilteredOnShortWords");
97 };
98
75 setupNewSearch(); 99 setupNewSearch();
76 100
77 U32 scope = DFQ_PEOPLE; 101 U32 scope = DFQ_PEOPLE;
@@ -80,7 +104,7 @@ void LLPanelDirPeople::performQuery()
80 sendDirFindQuery( 104 sendDirFindQuery(
81 gMessageSystem, 105 gMessageSystem,
82 mSearchID, 106 mSearchID,
83 childGetValue("name").asString(), 107 query_string,
84 scope, 108 scope,
85 mSearchStart); 109 mSearchStart);
86} 110}