1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 09:29:10 +00:00

(svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0.

This commit is contained in:
rubidium
2008-08-22 22:54:38 +00:00
parent 12f38e56df
commit ca27155a52

View File

@@ -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 */