1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 16:08:39 -05:00

AirspyHF: fixed band setting initialization when setting frequency from preset

This commit is contained in:
f4exb 2018-01-15 00:32:59 +01:00
parent 6cf1524c7a
commit aa04cad353

View File

@ -210,16 +210,19 @@ void AirspyHFGui::updateFrequencyLimits()
void AirspyHFGui::displaySettings()
{
blockApplySettings(true);
ui->band->blockSignals(true);
m_settings.m_bandIndex = m_settings.m_centerFrequency <= 31000000UL ? 0 : 1; // override
ui->band->setCurrentIndex(m_settings.m_bandIndex);
updateFrequencyLimits();
ui->transverter->setDeltaFrequency(m_settings.m_transverterDeltaFrequency);
ui->transverter->setDeltaFrequencyActive(m_settings.m_transverterMode);
updateFrequencyLimits();
ui->centerFrequency->setValue(m_settings.m_centerFrequency / 1000);
ui->sampleRate->setCurrentIndex(m_settings.m_devSampleRateIndex);
ui->decim->setCurrentIndex(m_settings.m_log2Decim);
blockApplySettings(false);
ui->band->blockSignals(false);
blockApplySettings(false);
}
void AirspyHFGui::displaySampleRates()