FS#6599 - Can still click on buy button in vehicle selection window even if no vehicle is selected
Attached to Project:
OpenTTD
Opened by James (james1101) - Thursday, 10 August 2017, 20:40 GMT
Last edited by andythenorth (andythenorth) - Friday, 01 September 2017, 10:09 GMT
Opened by James (james1101) - Thursday, 10 August 2017, 20:40 GMT
Last edited by andythenorth (andythenorth) - Friday, 01 September 2017, 10:09 GMT
|
DetailsTo Reproduce:
1. Open a depot window and click the 'New Vehicles' button. 2. Deselect the vehicle by doing the following: 3. Select a vehicle. (Example: a locomotive without any capacity) 4. Filter the list such that the selected vehicle disappears. (Example: Show only vehicles that can carry <cargo name>.) 5. Click the 'Buy Vehicle' button in the vehicle selection window. -> Nothing happens. The button is not greyed out, but it does nothing. Please fix this. |
This task depends upon
0-disable-build-button-if-no-engine-selected.diff
Fixes the issue (disables/enables the button when needed).
1-select-first-available-rail-engine-to-buy.diff
Enable auto-selecting first available engine also in train lists (currently, when the selected train is being filtered out, nothing gets selected). Also remove some duplicated code.
2-use-gui-sorlists-for-buildvehgui-engines-sorting.diff
Remove duplicated code and use GUIList class for sorting engine lists.
3-use-gui-sorlists-for-buildvehgui-engines-filtering.diff
Remove duplicated code and use GUIList class for filtering engine lists.
4-uncache-buildvehgui-listviewmode.diff
Remove useless caching of "list-view mode" in BuildVehicleWindow class.
5-uncache-buildvehgui-cargofilterarray.diff
Remove useless caching of cargoes and cargo names in BuildVehicleWindow class.