| 970 | } |
| 971 | |
| 972 | void OnDropdownSelect(WidgetID widget, int index, int) override |
| 973 | { |
| 974 | if (widget != WID_TD_SORT_CRITERIA) return; |
| 975 | |
| 976 | if (this->towns.SortType() != index) { |
| 977 | this->towns.SetSortType(index); |
| 978 | this->last_sorting = this->towns.GetListing(); // Store new sorting order. |
| 979 | this->BuildSortTownList(); |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | void OnPaint() override |
| 984 | { |
nothing calls this directly
no test coverage detected