mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-13 02:52:37 +00:00
(svn r25426) -Fix: highlight the right entry in the sorting selector in station view window
This commit is contained in:
parent
854d5e4b78
commit
1584c8f733
@ -1913,7 +1913,13 @@ struct StationViewWindow : public Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case WID_SV_SORT_BY: {
|
case WID_SV_SORT_BY: {
|
||||||
ShowDropDownMenu(this, _sort_names, this->current_mode, WID_SV_SORT_BY, 0, 0);
|
/* The initial selection is composed of current mode and
|
||||||
|
* sorting criteria for columns 1, 2, and 3. Column 0 is always
|
||||||
|
* sorted by cargo ID. The others can theoretically be sorted
|
||||||
|
* by different things but there is no UI for that. */
|
||||||
|
ShowDropDownMenu(this, _sort_names,
|
||||||
|
this->current_mode * 2 + (this->sortings[1] == ST_COUNT ? 1 : 0),
|
||||||
|
WID_SV_SORT_BY, 0, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user