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

pull/155/head
smatz 17 years ago
parent d0fdbce6d2
commit c830c4a369

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

Loading…
Cancel
Save