diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llpaneldirgroups.cpp | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-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 '')
-rw-r--r-- | linden/indra/newview/llpaneldirgroups.cpp | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llpaneldirgroups.cpp b/linden/indra/newview/llpaneldirgroups.cpp index 777908d..ab2ec38 100644 --- a/linden/indra/newview/llpaneldirgroups.cpp +++ b/linden/indra/newview/llpaneldirgroups.cpp | |||
@@ -39,6 +39,7 @@ | |||
39 | #include "message.h" | 39 | #include "message.h" |
40 | #include "llqueryflags.h" | 40 | #include "llqueryflags.h" |
41 | #include "llviewercontrol.h" | 41 | #include "llviewercontrol.h" |
42 | #include "llviewerwindow.h" | ||
42 | 43 | ||
43 | // viewer project includes | 44 | // viewer project includes |
44 | 45 | ||
@@ -86,6 +87,29 @@ void LLPanelDirGroups::performQuery() | |||
86 | return; | 87 | return; |
87 | } | 88 | } |
88 | 89 | ||
90 | // filter short words out of the query string | ||
91 | // and indidate if we did have to filter it | ||
92 | bool query_was_filtered = false; | ||
93 | std::string query_string = LLPanelDirBrowser::filter_short_words( | ||
94 | childGetValue("name").asString(), | ||
95 | mMinSearchChars, | ||
96 | query_was_filtered ); | ||
97 | |||
98 | // possible we threw away all the short words in the query so check length | ||
99 | if ( query_string.length() < mMinSearchChars ) | ||
100 | { | ||
101 | gViewerWindow->alertXml("SeachFilteredOnShortWordsEmpty"); | ||
102 | return; | ||
103 | }; | ||
104 | |||
105 | // if we filtered something out, display a popup | ||
106 | if ( query_was_filtered ) | ||
107 | { | ||
108 | LLString::format_map_t args; | ||
109 | args["[FINALQUERY]"] = query_string; | ||
110 | gViewerWindow->alertXml("SeachFilteredOnShortWords"); | ||
111 | }; | ||
112 | |||
89 | setupNewSearch(); | 113 | setupNewSearch(); |
90 | 114 | ||
91 | // groups | 115 | // groups |
@@ -105,7 +129,7 @@ void LLPanelDirGroups::performQuery() | |||
105 | sendDirFindQuery( | 129 | sendDirFindQuery( |
106 | gMessageSystem, | 130 | gMessageSystem, |
107 | mSearchID, | 131 | mSearchID, |
108 | childGetValue("name").asString(), | 132 | query_string, |
109 | scope, | 133 | scope, |
110 | mSearchStart); | 134 | mSearchStart); |
111 | } | 135 | } |