From 7ae483dc29a5dc2140aa71e9aa252bea388803a2 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sun, 18 Mar 2018 20:38:42 +0000 Subject: [PATCH] Restrict automatic recognition of CQ nnn calls to exactly nnn of 010 through 999 inclusive The values of CQ 000 through CQ 009 are reserved for calling by numbers to reduce a pile up e.g. "CQ 2 P5/G4WJS" indicating only callers with a 2 in their callsign should call. Numeric balues with less than 3 digits or more 3 digits are not allowed in standard messages. This is in line with the message source encoding protocol. Thanks to Mike, W9MDB, for the cotribution this change was based on. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8572 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 1f6c720a6..66b0237b8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4039,7 +4039,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie && m_config.is_transceiver_online ()) { bool ok; auto kHz = parts[6].toUInt (&ok); - if (ok && kHz >= 10 && kHz <= 999) { + if (ok && kHz >= 10 && 3 == parts[6].size ()) { // QSY Freq for answering CQ nnn setRig (m_freqNominal / 1000000 * 1000000 + 1000 * kHz); ui->decodedTextBrowser2->displayQSY (QString {"QSY %1"}.arg (m_freqNominal / 1e6, 7, 'f', 3));