From 66eb7c1e3304126068f94cfb3462c994500ca439 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 3 Jul 2021 00:04:14 +0200 Subject: [PATCH] Satellite Tracker GUI: update list of satellites in target combo from settings in the displaySettings method --- plugins/feature/satellitetracker/satellitetrackergui.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/feature/satellitetracker/satellitetrackergui.cpp b/plugins/feature/satellitetracker/satellitetrackergui.cpp index cf3677e6a..a9de7f70a 100644 --- a/plugins/feature/satellitetracker/satellitetrackergui.cpp +++ b/plugins/feature/satellitetracker/satellitetrackergui.cpp @@ -313,6 +313,12 @@ void SatelliteTrackerGUI::displaySettings() blockApplySettings(true); ui->latitude->setValue(m_settings.m_latitude); ui->longitude->setValue(m_settings.m_longitude); + ui->target->clear(); + + for (const QString& s : m_settings.m_satellites) { + ui->target->addItem(s); + } + ui->target->setCurrentIndex(ui->target->findText(m_settings.m_target)); if (m_settings.m_dateTime == "") {