Ensure band/frequency combo box edit shows correct band

This commit is contained in:
Bill Somerville 2020-09-02 21:08:25 +01:00
parent fcc5df35d3
commit a623ed0baf
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F
1 changed files with 1 additions and 1 deletions

View File

@ -6621,8 +6621,8 @@ void MainWindow::switch_mode (Mode mode)
m_fastGraph->setMode(m_mode);
m_config.frequencies ()->filter (m_config.region (), mode);
auto const& row = m_config.frequencies ()->best_working_frequency (m_freqNominal);
ui->bandComboBox->setCurrentIndex (row);
if (row >= 0) {
ui->bandComboBox->setCurrentIndex (row);
on_bandComboBox_activated (row);
}
ui->rptSpinBox->setSingleStep(1);