Changeset - r19879:0ab70bc92809
[Not reviewed]
master
0 2 0
michi_cc - 11 years ago 2012-12-20 19:44:06
michi_cc@openttd.org
(svn r24834) -Fix [FS#5396]: The autorefit dropdown in the order GUI wasn't always updated when modifying vehicle consists.
2 files changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/order_gui.cpp
Show inline comments
 
@@ -869,6 +869,10 @@ public:
 
			case VIWD_AUTOREPLACE:
 
				/* Autoreplace replaced the vehicle */
 
				this->vehicle = Vehicle::Get(this->window_number);
 
				/* FALL THROUGH */
 

	
 
			case VIWD_CONSIST_CHANGED:
 
				/* Vehicle composition was changed. */
 
				this->UpdateAutoRefitState();
 
				break;
 

	
src/train_cmd.cpp
Show inline comments
 
@@ -242,6 +242,7 @@ void Train::ConsistChanged(bool same_len
 
		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);
 
	}
 
}
 

	
0 comments (0 inline, 0 general)