changeset 8829:2557485ff613 draft

(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
author smatz <smatz@openttd.org>
date Sat, 05 Apr 2008 11:35:32 +0000
parents f8c143a8cd90
children 981a95f3204d
files src/rail_gui.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -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;