aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpaneldirplaces.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/llpaneldirplaces.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 '')
-rw-r--r--linden/indra/newview/llpaneldirplaces.cpp26
1 files changed, 25 insertions, 1 deletions
diff --git a/linden/indra/newview/llpaneldirplaces.cpp b/linden/indra/newview/llpaneldirplaces.cpp
index ebeca07..9a761c4 100644
--- a/linden/indra/newview/llpaneldirplaces.cpp
+++ b/linden/indra/newview/llpaneldirplaces.cpp
@@ -48,6 +48,7 @@
48#include "llcombobox.h" 48#include "llcombobox.h"
49#include "llfloaterdirectory.h" 49#include "llfloaterdirectory.h"
50#include "lllineeditor.h" 50#include "lllineeditor.h"
51#include "llviewerwindow.h"
51#include "llpaneldirbrowser.h" 52#include "llpaneldirbrowser.h"
52#include "lltextbox.h" 53#include "lltextbox.h"
53#include "lluiconstants.h" 54#include "lluiconstants.h"
@@ -104,6 +105,29 @@ void LLPanelDirPlaces::performQuery()
104 return; 105 return;
105 } 106 }
106 107
108 // filter short words out of the query string
109 // and indidate if we did have to filter it
110 bool query_was_filtered = false;
111 std::string query_string = LLPanelDirBrowser::filter_short_words(
112 name,
113 mMinSearchChars,
114 query_was_filtered );
115
116 // possible we threw away all the short words in the query so check length
117 if ( query_string.length() < mMinSearchChars )
118 {
119 gViewerWindow->alertXml("SeachFilteredOnShortWordsEmpty");
120 return;
121 };
122
123 // if we filtered something out, display a popup
124 if ( query_was_filtered )
125 {
126 LLString::format_map_t args;
127 args["[FINALQUERY]"] = query_string;
128 gViewerWindow->alertXml("SeachFilteredOnShortWords");
129 };
130
107 LLString catstring = childGetValue("Category").asString(); 131 LLString catstring = childGetValue("Category").asString();
108 132
109 // Because LLParcel::C_ANY is -1, must do special check 133 // Because LLParcel::C_ANY is -1, must do special check
@@ -120,7 +144,7 @@ void LLPanelDirPlaces::performQuery()
120 BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims") 144 BOOL pg_only = !gSavedSettings.getBOOL("ShowMatureSims")
121 || gAgent.isTeen(); 145 || gAgent.isTeen();
122 146
123 queryCore(name, category, pg_only); 147 queryCore(query_string, category, pg_only);
124} 148}
125 149
126void LLPanelDirPlaces::initialQuery() 150void LLPanelDirPlaces::initialQuery()