From 1c02b1e6e6d3121ee64d5a48da6a819ed26f92d1 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Wed, 26 Jul 2017 01:39:30 +0000 Subject: [PATCH] Auto Tx stop when calling a CQer who answers another station on your Tx frequency git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7953 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 8dfa7d1f6..bd3752152 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -2799,7 +2799,16 @@ void MainWindow::auto_sequence (QString const& message, unsigned tolerance) auto in_tolerance = ok && (qAbs (ui->RxFreqSpinBox->value () - df) <= int (tolerance) || qAbs (ui->TxFreqSpinBox->value () - df) <= int (tolerance)); - if (m_auto // transmit allowed + if (m_auto + && (REPLYING == m_QSOProgress + || (!ui->tx1->isEnabled () && REPORT == m_QSOProgress)) + && qAbs (ui->TxFreqSpinBox->value () - df) <= int (tolerance) + && !parts[5].contains (QRegularExpression {"(^(CQ|QRZ)$)|" + m_baseCall}) + && parts[6].contains (Radio::base_callsign (ui->dxCallEntry->text ()))) { + // auto stop to avoid accidental QRM + auto_tx_mode (false); + } + else if (m_auto // transmit allowed && ui->cbAutoSeq->isVisible () && ui->cbAutoSeq->isChecked() // auto-sequencing allowed && ((!m_bCallingCQ // not calling CQ/QRZ && !m_sentFirst73 // finished QSO