(svn r6659) -Fix r6619: Fix widget state setting of the rail toolbar when using global hotkeys.

This commit is contained in:
glx 2006-10-05 23:38:40 +00:00
parent a9c3f8991a
commit 81e3101a01

View File

@ -600,7 +600,10 @@ void ShowBuildRailToolbar(RailType railtype, int button)
} }
_remove_button_clicked = false; _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(); if (_patches.link_terraform_toolbar) ShowTerraformToolbar();
} }