# HG changeset patch # User adf88@interia.pl # Date 1503136274 -7200 # Sat Aug 19 11:51:14 2017 +0200 # Branch trunk # Node ID a42ef8646911e21397cfdbb4611667ec2fee3ade # Parent 584e1cc2ffb25cb095e7ffa701d23530d5d10ea5 Fixes the issue (disables/enables the button when needed). diff -r 584e1cc2ffb2 -r a42ef8646911 src/build_vehicle_gui.cpp --- a/src/build_vehicle_gui.cpp Sun Aug 13 18:38:42 2017 +0000 +++ b/src/build_vehicle_gui.cpp Sat Aug 19 11:51:14 2017 +0200 @@ -1439,6 +1439,7 @@ this->vscroll->SetCount(this->eng_list.Length()); this->SetWidgetDisabledState(WID_BV_SHOW_HIDE, this->sel_engine == INVALID_ENGINE); + this->SetWidgetDisabledState(WID_BV_BUILD, this->sel_engine == INVALID_ENGINE); this->DrawWidgets();