Commit 3c65fecb authored by Rye Mutt's avatar Rye Mutt 🍞
Browse files

Fix sorting issue in region tracker

parent 7d123824
......@@ -111,6 +111,8 @@ void ALFloaterRegionTracker::refresh()
const std::string& saved_selected_value = mRegionScrollList->getSelectedValue().asString();
S32 saved_scroll_pos = mRegionScrollList->getScrollPos();
auto sort_column_name = mRegionScrollList->getSortColumnName();
auto sort_asending = mRegionScrollList->getSortAscending();
mRegionScrollList->deleteAllItems();
const std::string& cur_region_name = gAgent.getRegion() ? gAgent.getRegion()->getName() : LLStringUtil::null;
......@@ -165,6 +167,8 @@ void ALFloaterRegionTracker::refresh()
mRegionScrollList->addRow(row);
}
}
mRegionScrollList->sortByColumn(sort_column_name, sort_asending);
if (!saved_selected_value.empty())
mRegionScrollList->selectByValue(saved_selected_value);
mRegionScrollList->setScrollPos(saved_scroll_pos);
......
......@@ -65,7 +65,8 @@
multi_select="true"
draw_heading="true"
column_padding="0"
search_column="0">
search_column="0"
sort_column="0">
<scroll_list.columns
name="region_label"
label="Label"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment