From a1a54976f58ade3778b376c75b0437ee91f35653 Mon Sep 17 00:00:00 2001 From: glx Date: Thu, 16 Nov 2006 18:41:57 +0000 Subject: (svn r7176) -Fix: remove button was not always disabled when it should have been (rail/road build toolbar) --- rail_gui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rail_gui.c') diff --git a/rail_gui.c b/rail_gui.c index 722579002..4d9e8ae17 100644 --- a/rail_gui.c +++ b/rail_gui.c @@ -493,6 +493,8 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) case WE_ABORT_PLACE_OBJ: RaiseWindowButtons(w); + DisableWindowWidget(w, 16); + InvalidateWidget(w, 16); w = FindWindowById(WC_BUILD_STATION, 0); if (w != NULL) WP(w,def_d).close = true; -- cgit v1.2.3-54-g00ecf