mirror of https://github.com/OpenTTD/OpenTTD
(svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0.
parent
12f38e56df
commit
ca27155a52
|
@ -883,6 +883,8 @@ struct VehicleListWindow : public Window, public VehicleListBase {
|
|||
SortVehicleList(this);
|
||||
SetVScrollCount(this, this->vehicles.Length());
|
||||
|
||||
if (this->vehicles.Length() == 0) HideDropDownMenu(this);
|
||||
|
||||
/* draw the widgets */
|
||||
switch (window_type) {
|
||||
case VLW_SHARED_ORDERS: /* Shared Orders */
|
||||
|
|
Loading…
Reference in New Issue