(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:
rubidium 2010-06-23 14:56:17 +00:00
parent 52154e097c
commit 18e567c168
1 changed files with 3 additions and 1 deletions

View File

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