summaryrefslogtreecommitdiff
path: root/src/order_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r--src/order_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp
index 8af15bb0b..1a16d0ded 100644
--- a/src/order_gui.cpp
+++ b/src/order_gui.cpp
@@ -980,6 +980,9 @@ public:
this->EnableWidget(ORDER_WIDGET_NON_STOP);
this->SetWidgetLoweredState(ORDER_WIDGET_NON_STOP, order->GetNonStopType() & ONSF_NO_STOP_AT_INTERMEDIATE_STATIONS);
}
+ /* Disable refit button if the order is no 'always go' order.
+ * However, keep the service button enabled for refit-orders to allow clearing refits (without knowing about ctrl). */
+ this->SetWidgetDisabledState(ORDER_WIDGET_REFIT, (order->GetDepotOrderType() & ODTFB_SERVICE) || (order->GetDepotActionType() & ODATFB_HALT));
this->SetWidgetLoweredState(ORDER_WIDGET_SERVICE, order->GetDepotOrderType() & ODTFB_SERVICE);
break;