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:
parent
ef672300d2
commit
48340f253a
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user