Skip to content

Commit

Permalink
Merge branch 'ADIFWSJTX' into testing_0.36
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed May 30, 2024
2 parents 8938ac9 + 5da54bb commit 9a82194
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 9a82194

Please sign in to comment.