From 2db2884c399d59170c81c88309dd460395a319d4 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 1 Dec 2020 15:11:36 +0000 Subject: [PATCH] Fix regression with selecting a working frequency when changing mode --- models/FrequencyList.cpp | 1 + widgets/mainwindow.cpp | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/models/FrequencyList.cpp b/models/FrequencyList.cpp index 3c4a43012..b14dae6f9 100644 --- a/models/FrequencyList.cpp +++ b/models/FrequencyList.cpp @@ -580,6 +580,7 @@ auto FrequencyList_v2::impl::frequency_list (FrequencyItems frequency_list) -> F return frequency_list; } +// add a frequency returning the new model index QModelIndex FrequencyList_v2::impl::add (Item f) { // Any Frequency that isn't in the list may be added diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 701649aa1..7e7bf0ebf 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -7609,10 +7609,6 @@ void MainWindow::on_sbTR_valueChanged(int value) progressBar.setMaximum (value); } if(m_mode=="FST4") chk_FST4_freq_range(); - if(m_monitoring) { - on_stopButton_clicked(); - on_monitorButton_clicked(true); - } if(m_transmitting) { on_stopTxButton_clicked(); }