From 9331c7a5a1cb68cde7993f884cf051ad15ec26f8 Mon Sep 17 00:00:00 2001 From: Tag Date: Sat, 27 Aug 2022 15:23:28 -0700 Subject: [PATCH] Fixed DXCC CQ highlighting Also fixed 'Statistics -> Decodes' CQ message hilghting --- package.nw/lib/gt.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/package.nw/lib/gt.js b/package.nw/lib/gt.js index 459001d..fad8c73 100644 --- a/package.nw/lib/gt.js +++ b/package.nw/lib/gt.js @@ -7334,10 +7334,9 @@ function handleWsjtxDecode(newMessage) if (locality == null) { // Check the prefix for dxcc direct - var dxcc = callsignToDxcc(CCd); - if (dxcc != -1) + if (CCd in g_prefixToMap) { - locality = g_worldGeoData[g_dxccToGeoData[dxcc]].geo; + locality = g_worldGeoData[g_prefixToMap[CCd]].geo; if (locality == "deleted") locality = null; } } @@ -7412,7 +7411,7 @@ function handleWsjtxDecode(newMessage) "" + newMessage.MO + "" + htmlEntities(newMessage.Msg) + "" +