From 65fedf0cfb863232d198f4b9ab9cf355b3aa3c52 Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 5 Apr 2008 11:35:32 +0000 Subject: [PATCH] (svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed --- src/rail_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index bbab6bfda9..f69ada958d 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -601,7 +601,7 @@ static void BuildRailToolbWndProc(Window *w, WindowEvent *e) case WE_PLACE_DRAG: { /* no dragging if you have pressed the convert button */ - if (_convert_signal_button && w->IsWidgetLowered(RTW_BUILD_SIGNALS)) return; + if (FindWindowById(WC_BUILD_SIGNAL, 0) != NULL && _convert_signal_button && w->IsWidgetLowered(RTW_BUILD_SIGNALS)) return; VpSelectTilesWithMethod(e->we.place.pt.x, e->we.place.pt.y, e->we.place.select_method); return;