# HG changeset patch # User smatz # Date 1207395332 0 # Node ID d0a83a807954622509136dec45dfe14bc0ac4032 # Parent 28784a133c5785b5b8f6e3c6cdf417feeed96781 (svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed diff -r 28784a133c57 -r d0a83a807954 src/rail_gui.cpp --- a/src/rail_gui.cpp Sat Apr 05 11:27:50 2008 +0000 +++ b/src/rail_gui.cpp Sat Apr 05 11:35:32 2008 +0000 @@ -601,7 +601,7 @@ 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;