From 65b909090397cacaf4ef2dab50982d2b192afb04 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 20 Jan 2017 14:54:56 +0000 Subject: [PATCH] Don't allow Tx in QRA64 if NoQRA64 was selected. Likewise for JT65. Set default rpt=-24 for QRA64. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/map65@7542 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1e49ef271..2140274d8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1567,9 +1567,11 @@ void MainWindow::guiUpdate() m_startAnother=false; on_actionOpen_next_in_directory_triggered(); } + if(m_modeQRA64==0 and m_modeTx=="QRA64") on_pbTxMode_clicked(); + if(m_modeJT65==0 and m_modeTx=="JT65") on_pbTxMode_clicked(); if(nsec != m_sec0) { //Once per second -// qDebug() << "A" << nsec%60; +// qDebug() << "A" << nsec%60 << m_mode65 << m_modeQRA64 << m_modeTx; soundInThread.setForceCenterFreqMHz(g_pWideGraph->m_dForceCenterFreq); soundInThread.setForceCenterFreqBool(g_pWideGraph->m_bForceCenterFreq); @@ -1773,6 +1775,7 @@ void MainWindow::genStdMsgs(QString rpt) //genStdMsgs() QString t=t0; if(t0.indexOf("/")<0) t=t0 + m_myGrid.mid(0,4); msgtype(t, ui->tx1); + if(rpt == "" and m_modeTx=="QRA64") rpt="-24"; if(rpt == "" and m_modeTx=="JT65") { t=t+" OOO"; msgtype(t, ui->tx2); @@ -2069,6 +2072,7 @@ void MainWindow::on_actionErase_map65_tx_log_triggered() //Erase Tx log void MainWindow::on_actionNoJT65_triggered() { + m_mode65=0; m_modeJT65=0; lab5->setStyleSheet(""); lab5->setText(""); @@ -2078,6 +2082,7 @@ void MainWindow::on_actionJT65A_triggered() m_mode="JT65A"; m_modeJT65=1; m_mode65=1; + m_modeJT65=1; m_TRperiod=60; soundInThread.setPeriod(m_TRperiod); soundOutThread.setPeriod(m_TRperiod); @@ -2093,6 +2098,7 @@ void MainWindow::on_actionJT65B_triggered() m_mode="JT65B"; m_modeJT65=2; m_mode65=2; + m_modeJT65=2; m_TRperiod=60; soundInThread.setPeriod(m_TRperiod); soundOutThread.setPeriod(m_TRperiod);