diff options
author | glx <glx@openttd.org> | 2006-10-05 23:38:40 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2006-10-05 23:38:40 +0000 |
commit | 2489117e0149b751c91b99275cfb4c3b7a06501c (patch) | |
tree | 6e8228ef9b4c97456d524b1e823b38dd1126370b | |
parent | 0e8ddd233e1eb0732354598edaf523407f05c02a (diff) | |
download | openttd-2489117e0149b751c91b99275cfb4c3b7a06501c.tar.xz |
(svn r6659) -Fix r6619: Fix widget state setting of the rail toolbar when using global hotkeys.
-rw-r--r-- | rail_gui.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rail_gui.c b/rail_gui.c index e7785792a..313ea819a 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -600,7 +600,10 @@ void ShowBuildRailToolbar(RailType railtype, int button) } _remove_button_clicked = false; - if (w != NULL && button >= 0) _build_railroad_button_proc[button](w); + if (w != NULL && button >= 0) { + _build_railroad_button_proc[button](w); + UpdateRemoveWidgetStatus(w, button + 4); + } if (_patches.link_terraform_toolbar) ShowTerraformToolbar(); } |