Fixed a minor ui bug where it kept adding spaces to the end of the

filter.
This commit is contained in:
phr0z3nt04st
2010-06-14 14:07:41 -05:00
parent 04bb5ca573
commit efe1c95223
2 changed files with 40 additions and 39 deletions

View File

@@ -859,7 +859,8 @@ void LLFloaterMessageLog::startApplyingFilter(std::string filter, BOOL force)
LLMessageLogFilter new_filter = LLMessageLogFilter();
sMessageLogFilterString = filter;
new_filter.set(sMessageLogFilterString);
childSetText("filter_edit", filter + " ");
if(filter.at(filter.length()-1) != ' ')
childSetText("filter_edit", filter + " ");
if(force
|| (new_filter.mNegativeNames != sMessageLogFilter.mNegativeNames)
|| (new_filter.mPositiveNames != sMessageLogFilter.mPositiveNames))