summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-02-08 16:03:17 +0000
committerrubidium <rubidium@openttd.org>2009-02-08 16:03:17 +0000
commitd88f2a0120e38bb073a990ed4ae03ffb9e6058ea (patch)
tree9525247e5faa254459ae1dcb42bdbeaa679b077a /src/rail_gui.cpp
parentcba3be0b4f47beed4924953910cc39fd700a151a (diff)
downloadopenttd-d88f2a0120e38bb073a990ed4ae03ffb9e6058ea.tar.xz
(svn r15415) -Change: close the (station) joiner window when pressing the bulldozer.
Diffstat (limited to 'src/rail_gui.cpp')
-rw-r--r--src/rail_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp
index f483b4d74..f3033c0fa 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -298,6 +298,7 @@ enum RailToolbarWidgets {
*/
static void ToggleRailButton_Remove(Window *w)
{
+ DeleteWindowById(WC_SELECT_STATION, 0);
w->ToggleWidgetLoweredState(RTW_REMOVE);
w->InvalidateWidget(RTW_REMOVE);
_remove_button_clicked = w->IsWidgetLowered(RTW_REMOVE);