(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
authorsmatz
Sat, 05 Apr 2008 11:35:32 +0000
changeset 9325 b86050a4912d
parent 9324 bf9cc84b889d
child 9326 326baf219dda
(svn r12577) -Fix (r11547): the convert signal button disallowed signal dragging when the signal GUI was closed
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;