From 7923cd811bc90ef93210650825bf11e4d6399f54 Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 9 Jul 2024 23:11:26 +0200 Subject: [PATCH] WDSP receiver: added missing on_equalizer_toggled method --- plugins/channelrx/wdsprx/wdsprxgui.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/channelrx/wdsprx/wdsprxgui.cpp b/plugins/channelrx/wdsprx/wdsprxgui.cpp index ec5935ff1..05ed3c41e 100644 --- a/plugins/channelrx/wdsprx/wdsprxgui.cpp +++ b/plugins/channelrx/wdsprx/wdsprxgui.cpp @@ -258,6 +258,13 @@ void WDSPRxGUI::on_squelchThreshold_valueChanged(int value) applySettings(); } +void WDSPRxGUI::on_equalizer_toggled(bool checked) +{ + m_settings.m_equalizer = checked; + m_settings.m_profiles[m_settings.m_profileIndex].m_equalizer = m_settings.m_equalizer; + applySettings(); +} + void WDSPRxGUI::on_audioMute_toggled(bool checked) { m_audioMute = checked; @@ -1318,6 +1325,7 @@ void WDSPRxGUI::makeUIConnections() QObject::connect(ui->cwPeaking, &ButtonSwitch::toggled, this, &WDSPRxGUI::on_cwPeaking_toggled); QObject::connect(ui->squelch, &ButtonSwitch::toggled, this, &WDSPRxGUI::on_squelch_toggled); QObject::connect(ui->squelchThreshold, &QDial::valueChanged, this, &WDSPRxGUI::on_squelchThreshold_valueChanged); + QObject::connect(ui->equalizer, &ButtonSwitch::toggled, this, &WDSPRxGUI::on_equalizer_toggled); } void WDSPRxGUI::updateAbsoluteCenterFrequency()