diff -r 1ac8aac92385 -r e79cd19772dd src/order_gui.cpp --- a/src/order_gui.cpp Wed Jun 13 12:05:56 2007 +0000 +++ b/src/order_gui.cpp Tue Jun 19 07:21:01 2007 +0000 @@ -554,7 +554,13 @@ int sel = GetOrderFromOrderWndPt(w, e->we.click.pt.y, v); - if (sel == INVALID_ORDER) return; + if (sel == INVALID_ORDER) { + /* This was a click on an empty part of the orders window, so + * deselect the currently selected order. */ + WP(w,order_d).sel = -1; + SetWindowDirty(w); + return; + } if (_ctrl_pressed && sel < v->num_orders) { const Order *ord = GetVehicleOrder(v, sel);