mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:07:21 +08:00
Ref T637, allow 3 letter ICAOs in FP
* strict or lenient airport check * allow to enter 3 letter ICAO codes in FP
This commit is contained in:
@@ -266,7 +266,7 @@ namespace BlackGui
|
||||
if (!this->canAccessContext()) { return; }
|
||||
const CAirportIcaoCode icao(airportIcaoCode.isEmpty() ? ui->le_AtcStationsOnlineMetar->text().trimmed().toUpper() : airportIcaoCode.trimmed().toUpper());
|
||||
ui->le_AtcStationsOnlineMetar->setText(icao.asString());
|
||||
if (!icao.hasValidIcaoCode()) { return; }
|
||||
if (!icao.hasValidIcaoCode(true)) { return; }
|
||||
const CMetar metar(sGui->getIContextNetwork()->getMetarForAirport(icao));
|
||||
if (metar.hasMessage())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user