FIRE-16996: Persist sort order of radar columns
parent
84cf02b592
commit
9d47f3955e
|
|
@ -122,9 +122,7 @@ FSPanelRadar::~FSPanelRadar()
|
|||
|
||||
BOOL FSPanelRadar::postBuild()
|
||||
{
|
||||
// AO: radarlist takes over for nearbylist for presentation.
|
||||
mRadarList = getChild<FSRadarListCtrl>("radar_list");
|
||||
mRadarList->sortByColumn("range", TRUE); // sort by range
|
||||
mRadarList->setFilterColumn(0);
|
||||
mRadarList->setContextMenu(&FSFloaterRadarMenu::gFSRadarMenu);
|
||||
mRadarList->setDoubleClickCallback(boost::bind(&FSPanelRadar::onRadarListDoubleClicked, this));
|
||||
|
|
@ -500,7 +498,7 @@ void FSPanelRadar::onColumnDisplayModeChanged()
|
|||
parent_floater->reshape(min_width, parent_floater->getRect().getHeight());
|
||||
}
|
||||
|
||||
if (mRadarList->getColumn(current_sort_col)->getWidth() == -1)
|
||||
if (current_sort_col.empty() || mRadarList->getColumn(current_sort_col)->getWidth() == -1)
|
||||
{
|
||||
current_sort_col = "range";
|
||||
current_sort_asc = TRUE;
|
||||
|
|
|
|||
|
|
@ -173,6 +173,7 @@
|
|||
draw_stripes="true"
|
||||
multi_select="true"
|
||||
content_type="Agents"
|
||||
persist_sort_order="true"
|
||||
width="321">
|
||||
<radar_list.columns
|
||||
label="Name"
|
||||
|
|
|
|||
|
|
@ -173,6 +173,7 @@
|
|||
draw_stripes="true"
|
||||
multi_select="true"
|
||||
content_type="Agents"
|
||||
persist_sort_order="true"
|
||||
width="321">
|
||||
<radar_list.columns
|
||||
label="Name"
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@
|
|||
draw_stripes="true"
|
||||
multi_select="true"
|
||||
content_type="Agents"
|
||||
persist_sort_order="true"
|
||||
width="327">
|
||||
<radar_list.columns
|
||||
label="Name"
|
||||
|
|
|
|||
Loading…
Reference in New Issue