File diff r27475:997d62d70d7c → r27476:bb4a1b3a079d
src/vehicle_gui.cpp
Show inline comments
 
@@ -1963,13 +1963,13 @@ public:
 
	void OnPaint() override
 
	{
 
		this->BuildVehicleList();
 
		this->SortVehicleList();
 

	
 
		if (this->vehicles.size() == 0 && this->IsWidgetLowered(WID_VL_MANAGE_VEHICLES_DROPDOWN)) {
 
			HideDropDownMenu(this);
 
			this->CloseChildWindows(WC_DROPDOWN_MENU);
 
		}
 

	
 
		/* Hide the widgets that we will not use in this window
 
		 * Some windows contains actions only fit for the owner */
 
		int plane_to_show = (this->owner == _local_company) ? BP_SHOW_BUTTONS : BP_HIDE_BUTTONS;
 
		NWidgetStacked *nwi = this->GetWidget<NWidgetStacked>(WID_VL_HIDE_BUTTONS);