Mercurial > hg > openttd
changeset 15371:280d3eb3d72c draft
(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
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 23 Jun 2010 14:56:17 +0000 |
parents | a7ff8375c2c4 |
children | 26a8e0745b44 |
files | src/vehicle_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1114,7 +1114,9 @@ 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 */