refs #469, adjusted network context due to changes in signals and METAR naming

This commit is contained in:
Klaus Basan
2015-09-28 18:21:12 +02:00
committed by Mathew Sutcliffe
parent 8827b68b3b
commit 2ba061bbc0
7 changed files with 28 additions and 47 deletions

View File

@@ -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();