mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r20014) -Fix [FS#3881]: don't close the sort dropdown in the (original) vehicle list when there are no vehicles. That code is meant for the "actions" dropdown
This commit is contained in:
parent
52154e097c
commit
18e567c168
|
@ -1114,7 +1114,9 @@ public:
|
|||
this->BuildVehicleList(this->owner, GB(this->window_number, 16, 16), window_type);
|
||||
this->SortVehicleList();
|
||||
|
||||
if (this->vehicles.Length() == 0) HideDropDownMenu(this);
|
||||
if (this->vehicles.Length() == 0 && this->IsWidgetLowered(VLW_WIDGET_MANAGE_VEHICLES_DROPDOWN)) {
|
||||
HideDropDownMenu(this);
|
||||
}
|
||||
|
||||
/* Hide the widgets that we will not use in this window
|
||||
* Some windows contains actions only fit for the owner */
|
||||
|
|
Loading…
Reference in New Issue