summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2012-12-20 19:44:06 +0000
committermichi_cc <michi_cc@openttd.org>2012-12-20 19:44:06 +0000
commit01566d681603ddc3dfa98d49975fbe71395d3210 (patch)
tree2414568b0019e5fcc03575908a73372e26fe933d /src/train_cmd.cpp
parentc75962e04c0999c0c458b2ee54519f094d7c6543 (diff)
downloadopenttd-01566d681603ddc3dfa98d49975fbe71395d3210.tar.xz
(svn r24834) -Fix [FS#5396]: The autorefit dropdown in the order GUI wasn't always updated when modifying vehicle consists.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index 032ed2bdb..7cbf4c19b 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -242,6 +242,7 @@ void Train::ConsistChanged(bool same_length)
this->UpdateAcceleration();
SetWindowDirty(WC_VEHICLE_DETAILS, this->index);
InvalidateWindowData(WC_VEHICLE_REFIT, this->index, VIWD_CONSIST_CHANGED);
+ InvalidateWindowData(WC_VEHICLE_ORDERS, this->index, VIWD_CONSIST_CHANGED);
}
}