From eeed9b5a2eced1a006e2818d82b87c1c1450d198 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 26 May 2020 10:28:14 -0400 Subject: [PATCH] Don't allow restart with "ISCAT B" mode label unless VHF features are enabled. --- widgets/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 6a72d263f..2afedae14 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -921,7 +921,8 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, set_mode (m_mode); if(m_mode=="Echo") monitor(false); //Don't auto-start Monitor in Echo mode. - ui->sbSubmode->setValue (vhf ? m_nSubMode : 0); + ui->sbSubmode->setValue (vhf ? m_nSubMode : 0); //Submodes require VHF features + if(m_mode=="ISCAT" and !vhf) mode_label.setText("ISCAT A"); if(m_mode=="MSK144") { Q_EMIT transmitFrequency (1000.0); } else {