Fix #6599: Disable build and rename button in build vehicle window when no vehicle is selected.
This commit is contained in:

committed by
Niels Martin Hansen

parent
1f182c44c9
commit
57734fd85d
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user