From 2489117e0149b751c91b99275cfb4c3b7a06501c Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 5 Oct 2006 23:38:40 +0000 Subject: [PATCH] (svn r6659) -Fix r6619: Fix widget state setting of the rail toolbar when using global hotkeys. --- rail_gui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rail_gui.c b/rail_gui.c index e7785792a8..313ea819a0 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(); }