Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Testicular Slingshot
Alchemy Viewer
Commits
3c65fecb
Commit
3c65fecb
authored
Feb 19, 2020
by
Rye Mutt
🍞
Browse files
Fix sorting issue in region tracker
parent
7d123824
Changes
2
Hide whitespace changes
Inline
Side-by-side
indra/newview/alfloaterregiontracker.cpp
View file @
3c65fecb
...
...
@@ -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
);
...
...
indra/newview/skins/default/xui/en/floater_region_tracker.xml
View file @
3c65fecb
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment