From e21a631b87d34eab7e84661b8a26546121b1f4b5 Mon Sep 17 00:00:00 2001 From: Inusaito Sayori Date: Wed, 14 Aug 2013 21:00:10 -0400 Subject: [PATCH] Feature Request: Parse periods in query as spaces in legacy people search --- indra/newview/llpaneldirpeople.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/indra/newview/llpaneldirpeople.cpp b/indra/newview/llpaneldirpeople.cpp index 308bad48f..efe3612b3 100644 --- a/indra/newview/llpaneldirpeople.cpp +++ b/indra/newview/llpaneldirpeople.cpp @@ -33,12 +33,8 @@ #include "llviewerprecompiledheaders.h" #include "llpaneldirpeople.h" -#include "llviewerwindow.h" #include "llnotificationsutil.h" -// linden library includes -#include "message.h" - // viewer project includes #include "llqueryflags.h" @@ -90,7 +86,10 @@ void LLPanelDirPeople::performQuery() { LLNotificationsUtil::add("SeachFilteredOnShortWordsEmpty"); return; - }; + } + + // Allow searching for Account Name from account.name + LLStringUtil::replaceChar(query_string, '.', ' '); // if we filtered something out, display a popup if ( query_was_filtered ) @@ -98,7 +97,7 @@ void LLPanelDirPeople::performQuery() LLSD args; args["FINALQUERY"] = query_string; LLNotificationsUtil::add("SeachFilteredOnShortWords", args); - }; + } setupNewSearch();