From 98bd772119d0b603a53b31a875b5a2bc7e9108f7 Mon Sep 17 00:00:00 2001 From: skidd13 Date: Fri, 7 Dec 2007 17:51:27 +0000 Subject: (svn r11587) -Fix (r11457): The one way road button wasn't reset on abort --- src/road_gui.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 5e9abf4de..c7b984c61 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -467,9 +467,13 @@ static void BuildRoadToolbWndProc(Window *w, WindowEvent *e) break; case WE_ABORT_PLACE_OBJ: - RaiseWindowButtons(w); - w->DisableWidget(RTW_REMOVE); - InvalidateWidget(w, RTW_REMOVE); + w->RaiseButtons(); + w->SetWidgetsDisabledState(true, + RTW_REMOVE, + RTW_ONE_WAY, + WIDGET_LIST_END); + w->InvalidateWidget(RTW_REMOVE); + w->InvalidateWidget(RTW_ONE_WAY); w = FindWindowById(WC_BUS_STATION, 0); if (w != NULL) WP(w, def_d).close = true; -- cgit v1.2.3-54-g00ecf