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

This commit is contained in:
Peter Nelson 2019-02-10 21:12:06 +00:00 committed by Niels Martin Hansen
parent 1f182c44c9
commit 57734fd85d
1 changed files with 1 additions and 1 deletions

View File

@ -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();