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

SoapySDR support: fixed StringRangeGUI::setValue

This commit is contained in:
f4exb 2018-11-08 02:28:01 +01:00
parent ef672300d2
commit 48340f253a
2 changed files with 2 additions and 1 deletions

View File

@ -490,6 +490,7 @@ void SoapySDRInputGui::displaySettings()
ui->centerFrequency->setValue(m_settings.m_centerFrequency / 1000);
if (m_antennas) {
qDebug("SoapySDRInputGui::displaySettings: m_antenna: %s", m_settings.m_antenna.toStdString().c_str());
m_antennas->setValue(m_settings.m_antenna.toStdString());
}
if (m_sampleRateGUI) {

View File

@ -59,7 +59,7 @@ void StringRangeGUI::setValue(const std::string& value)
for (const auto &it : itemValues)
{
if (it >= value)
if (it == value)
{
ui->rangeCombo->blockSignals(true);
ui->rangeCombo->setCurrentIndex(index);