(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed

This commit is contained in:
smatz 2008-04-05 11:35:32 +00:00
parent b2e4adc2b8
commit 65fedf0cfb

View File

@ -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;