From e56abf490ff1e0725fef1f3bd4edb60dbbc30384 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 2 Apr 2021 20:48:10 +0200 Subject: [PATCH] DATV demod: set channel marker bandwidth appropriately --- plugins/channelrx/demoddatv/datvdemodgui.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/plugins/channelrx/demoddatv/datvdemodgui.cpp b/plugins/channelrx/demoddatv/datvdemodgui.cpp index a2c3fe85d..3b9a37fa7 100644 --- a/plugins/channelrx/demoddatv/datvdemodgui.cpp +++ b/plugins/channelrx/demoddatv/datvdemodgui.cpp @@ -96,9 +96,7 @@ bool DATVDemodGUI::handleMessage(const Message& message) { DATVDemod::MsgConfigureDATVDemod& cfg = (DATVDemod::MsgConfigureDATVDemod&) message; m_settings = cfg.getSettings(); - blockApplySettings(true); displaySettings(); - blockApplySettings(false); return true; } else @@ -294,12 +292,13 @@ void DATVDemodGUI::blockApplySettings(bool blnBlock) void DATVDemodGUI::displaySettings() { m_objChannelMarker.blockSignals(true); - blockApplySettings(true); - m_objChannelMarker.setCenterFrequency(m_settings.m_centerFrequency); - m_objChannelMarker.setBandwidth(m_settings.m_rfBandwidth); m_objChannelMarker.setColor(m_settings.m_rgbColor); m_objChannelMarker.setTitle(m_settings.m_title); + m_objChannelMarker.blockSignals(false); + m_objChannelMarker.setBandwidth(m_settings.m_rfBandwidth); + + blockApplySettings(true); setTitleColor(m_settings.m_rgbColor); setWindowTitle(m_objChannelMarker.getTitle()); @@ -379,7 +378,6 @@ void DATVDemodGUI::displaySettings() ui->udpTSPort->setText(tr("%1").arg(m_settings.m_udpTSPort)); blockApplySettings(false); - m_objChannelMarker.blockSignals(false); } void DATVDemodGUI::displaySystemConfiguration()