Merged from trunk:

------------------------------------------------------------------------
r7990 | bsomervi | 2017-08-03 00:20:35 +0100 (Thu, 03 Aug 2017) | 5 lines

Add a rule to deal with KG4 calls not in Gitmo

The  AD1C  cty.dat  file  does  not resolve  KG4  2x1  and  2x3  calls
correctly, any  that map to Gitmo  are really mainland U.S.   and this
change does that.
------------------------------------------------------------------------



git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx-1.8@7991 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2017-08-02 23:25:36 +00:00
parent 78ffb9fbef
commit eb69241151

View File

@ -89,7 +89,7 @@ void DisplayText::_appendDXCCWorkedB4(DecodedText& t1, QString& bg,
call=call.mid(0,i0);
}
if(call.length()<3) return;
if(!call.contains(QRegExp("[0-9]")) or !call.contains(QRegExp("[A-Z]"))) return;
if(!call.contains(QRegExp("[0-9]|[A-Z]"))) return;
logBook.match(/*in*/call,/*out*/countryName,callWorkedBefore,countryWorkedBefore);
int charsAvail = 48;
@ -144,6 +144,17 @@ void DisplayText::_appendDXCCWorkedB4(DecodedText& t1, QString& bg,
countryName.replace ("Asiatic", "AS");
countryName.replace ("European", "EU");
countryName.replace ("African", "AF");
//
// deal with special rules that cty.dat does not cope with
//
// KG4 2x1 and 2x3 calls that map to Gitmo are mainland US not Gitmo
if (call.startsWith ("KG4") && call.size () != 5)
{
countryName.replace ("Guantanamo Bay", "U.S.A.");
}
t1 += countryName;
}
}