1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-13 19:28:41 -04:00

Fix updateVORs so it doesn't delete selected VORs. For #1590

This commit is contained in:
Jon Beniston
2023-03-06 17:11:34 +00:00
parent 1b2162d88f
commit e930cf3c90
2 changed files with 29 additions and 11 deletions
@@ -496,7 +496,7 @@ void VORLocalizerGUI::selectVOR(VORGUI *vorGUI, bool selected)
void VORLocalizerGUI::updateVORs()
{
m_vorModel.removeAllVORs();
m_vorModel.removeAllExceptSelected();
AzEl azEl = m_azEl;
for (const auto vor : *m_vors)
@@ -509,7 +509,7 @@ void VORLocalizerGUI::updateVORs()
// Only display VOR if in range
if (azEl.getDistance() <= 200000) {
m_vorModel.addVOR(vor);
m_vorModel.addVOR(vor); // addVOR checks for duplicates
}
}
}