Mercurial > hg > openttd
changeset 4747:4db73e63de0f draft
(svn r6659) -Fix r6619: Fix widget state setting of the rail toolbar when using global hotkeys.
author | glx <glx@openttd.org> |
---|---|
date | Thu, 05 Oct 2006 23:38:40 +0000 |
parents | 8e2c43119d71 |
children | 8410cac194d5 |
files | rail_gui.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rail_gui.c +++ b/rail_gui.c @@ -600,7 +600,10 @@ } _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(); }