From adeac119d09789bc4049d72d2cfd941912aef0ff Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 2 Feb 2015 17:45:04 +0100 Subject: [PATCH] refs #369, only ATC stations with voiceroom displayed --- src/blackgui/components/aircraftcomponent.cpp | 2 +- src/blackgui/components/atcstationcomponent.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blackgui/components/aircraftcomponent.cpp b/src/blackgui/components/aircraftcomponent.cpp index d63862e21..73880123b 100644 --- a/src/blackgui/components/aircraftcomponent.cpp +++ b/src/blackgui/components/aircraftcomponent.cpp @@ -64,7 +64,7 @@ namespace BlackGui bool visible = (this->isVisibleWidget() && this->currentWidget() == this->ui->tb_AircraftInRange); if (this->countAircraft() < 1 || visible) { - this->ui->tvp_AircraftInRange->updateContainer(this->getIContextNetwork()->getAircraftInRange()); + this->ui->tvp_AircraftInRange->updateContainer(this->getIContextNetwork()->getAircraftInRange().toAircraftList()); } } if (this->getIContextSimulator()->isConnected()) diff --git a/src/blackgui/components/atcstationcomponent.cpp b/src/blackgui/components/atcstationcomponent.cpp index b1132c180..6884f1d78 100644 --- a/src/blackgui/components/atcstationcomponent.cpp +++ b/src/blackgui/components/atcstationcomponent.cpp @@ -122,7 +122,7 @@ namespace BlackGui // update if (this->m_timestampOnlineStationsChanged > this->m_timestampLastReadOnlineStations) { - this->ui->tvp_AtcStationsOnline->updateContainerMaybeAsync(this->getIContextNetwork()->getAtcStationsOnline()); + this->ui->tvp_AtcStationsOnline->updateContainerMaybeAsync(this->getIContextNetwork()->getAtcStationsOnline().stationsWithValidVoiceRoom()); this->m_timestampLastReadOnlineStations = QDateTime::currentDateTimeUtc(); this->m_timestampOnlineStationsChanged = this->m_timestampLastReadOnlineStations;