mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-07-13 07:05:18 -04:00
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
This commit is contained in:
parent
b029b769a2
commit
97b430654e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user