summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-02-10 21:12:06 +0000
committerNiels Martin Hansen <nielsm@indvikleren.dk>2019-02-14 19:35:48 +0100
commit57734fd85d0a5ae867c2d6ed4d661e177117d914 (patch)
tree31fc46eab59e733042278f33badea72b68a19b4d /src
parent1f182c44c98a8d478e290ef9fcee27c33204cc08 (diff)
downloadopenttd-57734fd85d0a5ae867c2d6ed4d661e177117d914.tar.xz
Fix #6599: Disable build and rename button in build vehicle window when no vehicle is selected.
Diffstat (limited to 'src')
-rw-r--r--src/build_vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build_vehicle_gui.cpp b/src/build_vehicle_gui.cpp
index 713cc5bbe..0ac23cfde 100644
--- a/src/build_vehicle_gui.cpp
+++ b/src/build_vehicle_gui.cpp
@@ -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();