AirspyHF: fixed band setting initialization when setting frequency from preset

pull/127/head
f4exb 2018-01-15 00:32:59 +01:00
rodzic 6cf1524c7a
commit aa04cad353
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -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()