From 5da54bb6ed0c2afbd58083537f32024335c086e1 Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Thu, 30 May 2024 16:32:54 +0200 Subject: [PATCH] WSJTX: Removed qsl_sent lotw_qsl_sent eqsl_qsl_sent from ADIF message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit the values have default values ​​defined in ADIF. These are set to N. However, WSJTX and other apps do not send these fields, which means that all records are set to N - Do Not Send. It is unacceptable. So this piece of code deletes these defaults so that in NewContact these values ​​are set from the values ​​in the GUI. There is a risk that some clone will start sending these values ​​as well. In this case, it will have to be handled differently. Currently it is OK --- core/Wsjtx.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/core/Wsjtx.cpp b/core/Wsjtx.cpp index ad97728a..bf53761f 100644 --- a/core/Wsjtx.cpp +++ b/core/Wsjtx.cpp @@ -539,6 +539,17 @@ void Wsjtx::insertContact(WsjtxLogADIF log) adif.importNext(record); + // the values ​​listed below have default values ​​defined in ADIF. + // These are set to N. However, WSJTX and other apps do not send + // these fields, which means that all records would be set to N - do not send. + // It is unacceptable. So this piece of code deletes these defaults so that + // in NewContact these values ​​are set from the values ​​in the GUI. + // There is a risk that some clone will start sending these values ​​as well. + // In this case, it will have to be handled differently. Currently it is OK + record.remove(record.indexOf("qsl_sent")); + record.remove(record.indexOf("lotw_qsl_sent")); + record.remove(record.indexOf("eqsl_qsl_sent")); + // The QSO record can be received in two formats from WSJTX (raw and ADIF). // Therefore, it is necessary to save the first record and possibly update it // with the second record and then emit the result.