1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-04-06 03:29:12 -04:00

#1287 - Fix ADS-B crash when My Position changed

This commit is contained in:
Jon Beniston 2022-09-20 12:15:47 +01:00
parent 487f46c8ca
commit ab0962b53d

View File

@ -4337,6 +4337,10 @@ void ADSBDemodGUI::update3DModels()
void ADSBDemodGUI::updateAirports()
{
if (!m_airportInfo) {
return;
}
m_airportModel.removeAllAirports();
QHash<int, AirportInformation *>::iterator i = m_airportInfo->begin();
AzEl azEl = m_azEl;
@ -4869,9 +4873,7 @@ ADSBDemodGUI::ADSBDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb
connect(&m_airportModel, &AirportModel::requestMetar, this, &ADSBDemodGUI::requestMetar);
// Add airports within range of My Position
if (m_airportInfo != nullptr) {
updateAirports();
}
updateAirports();
updateAirspaces();
updateNavAids();
update3DModels();