From d252214c103cd3635a0eea35e218d046235d84e0 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 27 Sep 2018 14:28:17 -0400 Subject: [PATCH] Fix the "CQ RU RU ..." bug. --- mainwindow.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index e26b8ec40..331ce72a2 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4610,7 +4610,8 @@ void MainWindow::genCQMsg () } } else { if(stdCall(m_config.my_callsign())) { - msgtype (QString {"%1 %2 %3"}.arg(m_CQtype).arg(m_config.my_callsign()).arg(grid.left(4)),ui->tx6); + msgtype (QString {"%1 %2 %3"}.arg(m_CQtype).arg(m_config.my_callsign()) + .arg(grid.left(4)),ui->tx6); } else { msgtype (QString {"%1 %2"}.arg(m_CQtype).arg(m_config.my_callsign()),ui->tx6); } @@ -4623,8 +4624,9 @@ void MainWindow::genCQMsg () } } - if((m_mode=="FT8" or m_mode=="MSK144") and m_nContest!=NONE) { - QString t=ui->tx6->text(); + QString t=ui->tx6->text(); + if((m_mode=="FT8" or m_mode=="MSK144") and m_nContest!=NONE and + t.split(" ").at(1)==m_config.my_callsign()) { // if(m_nContest==NA_VHF) t="CQ QP" + t.mid(2,-1); if(m_nContest==FIELD_DAY) t="CQ FD" + t.mid(2,-1); if(m_nContest==RTTY) t="CQ RU" + t.mid(2,-1);