Changeset - r23317:122beb521578
[Not reviewed]
master
0 1 0
Peter Nelson - 6 years ago 2019-02-10 21:12:06
peter1138@openttd.org
Fix #6599: Disable build and rename button in build vehicle window when no vehicle is selected.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/build_vehicle_gui.cpp
Show inline comments
 
@@ -1438,7 +1438,7 @@ struct BuildVehicleWindow : Window {
 
		this->GenerateBuildList();
 
		this->vscroll->SetCount(this->eng_list.Length());
 

	
 
		this->SetWidgetDisabledState(WID_BV_SHOW_HIDE, this->sel_engine == INVALID_ENGINE);
 
		this->SetWidgetsDisabledState(this->sel_engine == INVALID_ENGINE, WID_BV_SHOW_HIDE, WID_BV_BUILD, WID_BV_RENAME, WIDGET_LIST_END);
 

	
 
		this->DrawWidgets();
 

	
0 comments (0 inline, 0 general)