mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-23 01:55:48 -05:00
SSB demod: set bandwidth and low cut to maximum before adjusting limits. Fixes #957
This commit is contained in:
parent
8750ca9160
commit
e5bb3cb699
@ -44,6 +44,8 @@ bool SSBDemodGUI::deserialize(const QByteArray& data)
|
||||
{
|
||||
if(m_settings.deserialize(data))
|
||||
{
|
||||
ui->BW->setMaximum(480);
|
||||
ui->lowCut->setMaximum(480);
|
||||
displaySettings();
|
||||
applyBandwidths(m_settings.m_spanLog2, true); // does applySettings(true)
|
||||
return true;
|
||||
@ -51,6 +53,8 @@ bool SSBDemodGUI::deserialize(const QByteArray& data)
|
||||
else
|
||||
{
|
||||
m_settings.resetToDefaults();
|
||||
ui->BW->setMaximum(480);
|
||||
ui->lowCut->setMaximum(480);
|
||||
displaySettings();
|
||||
applyBandwidths(m_settings.m_spanLog2, true); // does applySettings(true)
|
||||
return false;
|
||||
@ -338,6 +342,8 @@ SSBDemodGUI::SSBDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
|
||||
m_iconDSBLSB.addPixmap(QPixmap("://dsb.png"), QIcon::Normal, QIcon::On);
|
||||
m_iconDSBLSB.addPixmap(QPixmap("://lsb.png"), QIcon::Normal, QIcon::Off);
|
||||
|
||||
ui->BW->setMaximum(480);
|
||||
ui->lowCut->setMaximum(480);
|
||||
displaySettings();
|
||||
applyBandwidths(m_settings.m_spanLog2, true); // does applySettings(true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user