File diff r27942:f7389062d120 → r27943:23c15817f0a5
src/airport_gui.cpp
Show inline comments
 
@@ -554,29 +554,30 @@ public:
 
						this->SelectOtherAirport(i);
 
						return;
 
					}
 
				}
 
			}
 
		}
 
		/* If all airports are unavailable, select nothing. */
 
		this->SelectOtherAirport(-1);
 
	}
 

	
 
	void OnDropdownSelect(int widget, int index) override
 
	{
 
		assert(widget == WID_AP_CLASS_DROPDOWN);
 
		if (widget == WID_AP_CLASS_DROPDOWN) {
 
		_selected_airport_class = (AirportClassID)index;
 
		this->vscroll->SetCount(AirportClass::Get(_selected_airport_class)->GetSpecCount());
 
		this->SelectFirstAvailableAirport(false);
 
	}
 
	}
 

	
 
	void OnRealtimeTick([[maybe_unused]] uint delta_ms) override
 
	{
 
		CheckRedrawStationCoverage(this);
 
	}
 

	
 
	IntervalTimer<TimerGameCalendar> yearly_interval = {{TimerGameCalendar::YEAR, TimerGameCalendar::Priority::NONE}, [this](auto) {
 
		this->InvalidateData();
 
	}};
 
};
 

	
 
static const NWidgetPart _nested_build_airport_widgets[] = {