mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-29 13:32:26 -04: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);
|
ui->centerFrequency->setValue(m_settings.m_centerFrequency / 1000);
|
||||||
|
|
||||||
if (m_antennas) {
|
if (m_antennas) {
|
||||||
|
qDebug("SoapySDRInputGui::displaySettings: m_antenna: %s", m_settings.m_antenna.toStdString().c_str());
|
||||||
m_antennas->setValue(m_settings.m_antenna.toStdString());
|
m_antennas->setValue(m_settings.m_antenna.toStdString());
|
||||||
}
|
}
|
||||||
if (m_sampleRateGUI) {
|
if (m_sampleRateGUI) {
|
||||||
|
@ -59,7 +59,7 @@ void StringRangeGUI::setValue(const std::string& value)
|
|||||||
|
|
||||||
for (const auto &it : itemValues)
|
for (const auto &it : itemValues)
|
||||||
{
|
{
|
||||||
if (it >= value)
|
if (it == value)
|
||||||
{
|
{
|
||||||
ui->rangeCombo->blockSignals(true);
|
ui->rangeCombo->blockSignals(true);
|
||||||
ui->rangeCombo->setCurrentIndex(index);
|
ui->rangeCombo->setCurrentIndex(index);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user