From bceb795d049a1e68eefe02665c324d7675b7f74f Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 16 Dec 2017 18:16:02 +0000 Subject: [PATCH] Allow CQonly to re-display after toggle. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8336 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 9 +++++++-- mainwindow.h | 1 + 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 5e0e9e2ae..d94bef527 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -899,7 +899,6 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, splashTimer.setSingleShot (true); splashTimer.start (20 * 1000); -/* if(m_config.my_callsign()=="K1JT" or m_config.my_callsign()=="K9AN" or m_config.my_callsign()=="G4WJS" || m_config.my_callsign () == "W9XYZ") { ui->actionWSPR_LF->setEnabled(true); @@ -911,7 +910,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple, "Please use WSJT-X v1.8.0\n", errorMsg); Q_EMIT finished (); } -*/ + if(!ui->cbMenus->isChecked()) { ui->cbMenus->setChecked(true); ui->cbMenus->setChecked(false); @@ -7077,6 +7076,12 @@ void MainWindow::on_cbMenus_toggled(bool b) hideMenus(!b); } +void MainWindow::on_cbCQonly_toggled(bool b) +{ + QFile {m_config.temp_dir ().absoluteFilePath (".lock")}.remove (); // Allow jt9 to start + decodeBusy(true); +} + void MainWindow::on_cbFirst_toggled(bool b) { if (b) { diff --git a/mainwindow.h b/mainwindow.h index 5b93b27d3..473ffaa17 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -249,6 +249,7 @@ private slots: void on_cbSWL_toggled(bool b); void on_cbTx6_toggled(bool b); void on_cbMenus_toggled(bool b); + void on_cbCQonly_toggled(bool b); void on_cbFirst_toggled(bool b); void on_cbAutoSeq_toggled(bool b); void networkError (QString const&);