From de91266a4dfc1b7759629237d0b2185fb98bbcdb Mon Sep 17 00:00:00 2001 From: Techwolf Lupindo Date: Tue, 25 Mar 2014 23:20:46 -0400 Subject: [PATCH] area search: Resort the list after updating a cell due to a lookup update. --- indra/newview/fsareasearch.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/indra/newview/fsareasearch.cpp b/indra/newview/fsareasearch.cpp index fac9533c32..1b232996f0 100644 --- a/indra/newview/fsareasearch.cpp +++ b/indra/newview/fsareasearch.cpp @@ -1073,9 +1073,11 @@ void FSAreaSearch::updateObjectCosts(const LLUUID& object_id, F32 object_cost, F { LLScrollListCell* linkset_cost_cell = list_row->getColumn(list_column->mIndex); linkset_cost_cell->setValue(LLSD(link_cost)); + result_list->setNeedsSort(); // re-sort if needed. } } } + } void FSAreaSearch::getNameFromUUID(LLUUID& id, std::string& name, BOOL group, bool& name_requested) @@ -1441,24 +1443,28 @@ void FSPanelAreaSearchList::updateName(LLUUID id, std::string name) { LLScrollListText* creator_text = (LLScrollListText*)item->getColumn(creator_column->mIndex); creator_text->setText(name); + mResultList->setNeedsSort(); } if (owner_column && (id == details.owner_id)) { LLScrollListText* owner_text = (LLScrollListText*)item->getColumn(owner_column->mIndex); owner_text->setText(name); + mResultList->setNeedsSort(); } if (group_column && (id == details.group_id)) { LLScrollListText* group_text = (LLScrollListText*)item->getColumn(group_column->mIndex); group_text->setText(name); + mResultList->setNeedsSort(); } if (last_owner_column && (id == details.last_owner_id)) { LLScrollListText* last_owner_text = (LLScrollListText*)item->getColumn(last_owner_column->mIndex); last_owner_text->setText(name); + mResultList->setNeedsSort(); } } }