From c81d17a5f4f41d722ebfea546884f2c3e044285b Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 7 Feb 2018 15:39:20 +0000 Subject: [PATCH] Restrict Fox activity with Nslots>1. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8469 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 12 +++++++++++- mainwindow.ui | 5 ++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index fb9441c7f..dc0eb0c63 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -920,7 +920,6 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, ui->cbMenus->setChecked(true); ui->cbMenus->setChecked(false); } - // this must be the last statement of constructor if (!m_valid) throw std::runtime_error {"Fatal initialization exception"}; } @@ -3562,6 +3561,17 @@ void MainWindow::guiUpdate() } else { m_bVHFwarned=false; } + if(m_config.bFox()) { + if(m_config.my_callsign()=="K1JT" or m_config.my_callsign()=="K9AN" or + m_config.my_callsign()=="G4WJS" or m_config.my_callsign()=="KH1/KH7Z" or + m_config.my_callsign().contains("AA7A") or m_config.my_callsign().contains("N1DG")) { + ui->sbNslots->setMaximum(5); + ui->sbNslots->setEnabled(true); + } else { + ui->sbNslots->setMaximum(1); + ui->sbNslots->setEnabled(false); + } + } /* qDebug() << "aa" << QDate::currentDate().toJulianDay() << QDate::currentDate().toJulianDay() - 2458150; if((QDate::currentDate().toJulianDay() - 2458156) > 30) { diff --git a/mainwindow.ui b/mainwindow.ui index 6823bc383..ff3f57a78 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -1649,7 +1649,10 @@ list. The list can be maintained in Settings (F2). 5 - 5 + 1 + + + 10