summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2006-10-05 23:38:40 +0000
committerglx <glx@openttd.org>2006-10-05 23:38:40 +0000
commit2489117e0149b751c91b99275cfb4c3b7a06501c (patch)
tree6e8228ef9b4c97456d524b1e823b38dd1126370b
parent0e8ddd233e1eb0732354598edaf523407f05c02a (diff)
downloadopenttd-2489117e0149b751c91b99275cfb4c3b7a06501c.tar.xz
(svn r6659) -Fix r6619: Fix widget state setting of the rail toolbar when using global hotkeys.
-rw-r--r--rail_gui.c5
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();
}