From 2e1ed58129e55716bfbf0b647511651c16684cbe Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Tue, 2 Mar 2021 19:23:17 +0000 Subject: [PATCH] Ensure double-click of repeated final message sends correct response --- widgets/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 7c688aa85..b01475eb6 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4152,7 +4152,7 @@ void MainWindow::guiUpdate() statusUpdate (); } } - m_bCallingCQ = CALLING == m_QSOProgress + m_bCallingCQ = 6 == m_ntx || m_currentMessage.contains (QRegularExpression {"^(CQ|QRZ) "}); if(m_mode=="FT8" or m_mode=="FT4") { if(m_bCallingCQ && ui->cbFirst->isVisible () && ui->cbFirst->isChecked ()) { @@ -5007,7 +5007,8 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie m_ntx=6; ui->txrb6->setChecked(true); } - else if (word_3.startsWith ('R') && word_3 != "RRR" && m_QSOProgress != ROGER_REPORT) + else if (word_3.contains (QRegularExpression {"^R(?!R73|RR)"}) + && m_QSOProgress != ROGER_REPORT) { m_ntx=4; ui->txrb4->setChecked(true);