Default column sorting to list sort_ascending attribute value

This commit is contained in:
Liru Færs
2020-01-10 16:07:14 -05:00
parent 28f13b806c
commit a687273d57

View File

@@ -2759,9 +2759,9 @@ void LLScrollListCtrl::setScrollListParameters(LLXMLNodePtr node)
} }
else // Singu Note: if a scroll list does not provide sort_direction, provide sort_ascending to sort as expected else // Singu Note: if a scroll list does not provide sort_direction, provide sort_ascending to sort as expected
{ {
bool sort_ascending = true; bool col_sort_ascending = sort_ascending;
child->getAttribute_bool("sort_ascending", sort_ascending); child->getAttribute_bool("sort_ascending", col_sort_ascending);
columns[index]["sort_ascending"] = sort_ascending; columns[index]["sort_ascending"] = col_sort_ascending;
} }
S32 columnwidth = -1; S32 columnwidth = -1;