From d587c77e90947385402c786c045ceaed11f90e1a Mon Sep 17 00:00:00 2001 From: Denis Serdjuk Date: Wed, 3 Mar 2010 11:39:44 +0200 Subject: Low Bug EXT-5752 Trash button in people panel remains enabled after removing last friend Cause: Avatarlist has been hidden before it had been updated. So one listitem was left in the list and remained always selected. Solution: Force update ability has been added to avatarlist --HG-- branch : product-engine --- indra/newview/llavatarlist.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'indra/newview/llavatarlist.cpp') diff --git a/indra/newview/llavatarlist.cpp b/indra/newview/llavatarlist.cpp index 50d8672083..45c540b3a3 100644 --- a/indra/newview/llavatarlist.cpp +++ b/indra/newview/llavatarlist.cpp @@ -183,6 +183,15 @@ void LLAvatarList::sortByName() sort(); } +void LLAvatarList::setDirty(bool val /*= true*/, bool force_refresh /*= false*/) +{ + mDirty = val; + if(mDirty && force_refresh) + { + refresh(); + } +} + ////////////////////////////////////////////////////////////////////////// // PROTECTED SECTION ////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3