diff options
author | Aimee Linden <aimee@lindenlab.com> | 2010-04-29 02:38:39 +0100 |
---|---|---|
committer | Aimee Linden <aimee@lindenlab.com> | 2010-04-29 02:38:39 +0100 |
commit | b90ece0936149a69b1176adc4ae2508c61e34fd7 (patch) | |
tree | 4295b0d766fd6cc80afccac4b689134741b5bb0e /indra/newview/llgrouplist.cpp | |
parent | 46897efc3efade25feaaa1dc67bc131c35202d12 (diff) | |
parent | 8c3feea2a2f3bcb648f712f63ea9c4dab8aaa0c3 (diff) |
Merge
Diffstat (limited to 'indra/newview/llgrouplist.cpp')
-rw-r--r-- | indra/newview/llgrouplist.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/indra/newview/llgrouplist.cpp b/indra/newview/llgrouplist.cpp index f21b6e1085..252c34cf9c 100644 --- a/indra/newview/llgrouplist.cpp +++ b/indra/newview/llgrouplist.cpp @@ -131,9 +131,15 @@ BOOL LLGroupList::handleRightMouseDown(S32 x, S32 y, MASK mask) void LLGroupList::setNameFilter(const std::string& filter) { - if (mNameFilter != filter) + std::string filter_upper = filter; + LLStringUtil::toUpper(filter_upper); + if (mNameFilter != filter_upper) { - mNameFilter = filter; + mNameFilter = filter_upper; + + // set no items message depend on filter state + updateNoItemsMessage(filter); + setDirty(); } } @@ -151,9 +157,6 @@ void LLGroupList::refresh() LLUUID id; bool have_filter = !mNameFilter.empty(); - // set no items message depend on filter state & total count of groups - updateNoItemsMessage(have_filter); - clear(); for(S32 i = 0; i < count; ++i) |