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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user