mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #469, adjusted network context due to changes in signals and METAR naming
This commit is contained in:
committed by
Mathew Sutcliffe
parent
8827b68b3b
commit
2ba061bbc0
@@ -150,7 +150,7 @@ namespace BlackGui
|
||||
QString icao = airportIcaoCode.isEmpty() ? this->ui->le_AtcStationsOnlineMetar->text().trimmed().toUpper() : airportIcaoCode.trimmed().toUpper();
|
||||
this->ui->le_AtcStationsOnlineMetar->setText(icao);
|
||||
if (icao.length() != 4) { return; }
|
||||
CMetar metar = this->getIContextNetwork()->getMetar(icao);
|
||||
CMetar metar(this->getIContextNetwork()->getMetarForAirport(icao));
|
||||
if (metar == CMetar())
|
||||
{
|
||||
this->ui->te_AtcStationsOnlineInfo->clear();
|
||||
|
||||
Reference in New Issue
Block a user