Skip to content

Commit

Permalink
WSJTX: Removed qsl_sent lotw_qsl_sent eqsl_qsl_sent from ADIF message
Browse files Browse the repository at this point in the history
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
  • Loading branch information
foldynl committed May 30, 2024
1 parent 12ef0b0 commit 5da54bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions core/Wsjtx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5da54bb

Please sign in to comment.