From 97b430654e5280bac1b5217a0458bf00b84e44e9 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 29 Nov 2016 15:24:50 +0000 Subject: [PATCH] Allow "CQ nnn ..." messages to be posted to PSKreporter. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7346 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- decodedtext.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/decodedtext.cpp b/decodedtext.cpp index 342977286..bf63ab36f 100644 --- a/decodedtext.cpp +++ b/decodedtext.cpp @@ -133,6 +133,8 @@ QString DecodedText::call() void DecodedText::deCallAndGrid(/*out*/QString& call, QString& grid) { auto msg = _string; + int i0=msg.indexOf("CQ "); + if(i0>0 and mid(i0+3,3).toInt()>0) msg=msg.mid(0,i0+3) + msg.mid(i0+7,-1); msg = msg.replace (QRegularExpression {" CQ ([A-Z]{2,2}) "}, " CQ_\\1 ").mid (column_qsoText); int i1 = msg.indexOf(" "); call = msg.mid(i1+1);