src/rail_gui.cpp
changeset 8829 d0a83a807954
parent 8810 33066120c736
child 8846 1b90782b2c4e
--- 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;