From f8f9d270dfb16de01489f061b91e72a4cb050d61 Mon Sep 17 00:00:00 2001 From: srcejon Date: Fri, 29 Sep 2023 21:18:27 +0100 Subject: [PATCH] Update annotations when restoring settings. --- plugins/channelrx/freqscanner/freqscannergui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/channelrx/freqscanner/freqscannergui.cpp b/plugins/channelrx/freqscanner/freqscannergui.cpp index 66a2f3d62..9cd79d20e 100644 --- a/plugins/channelrx/freqscanner/freqscannergui.cpp +++ b/plugins/channelrx/freqscanner/freqscannergui.cpp @@ -524,8 +524,10 @@ void FreqScannerGUI::displaySettings() ui->mode->setCurrentIndex((int)m_settings.m_mode); ui->table->blockSignals(true); - for (int i = 0; i < m_settings.m_frequencies.size(); i++) { + for (int i = 0; i < m_settings.m_frequencies.size(); i++) + { addRow(m_settings.m_frequencies[i], m_settings.m_enabled[i], m_settings.m_notes[i]); + updateAnnotation(i); } ui->table->blockSignals(false);