Skip to content

Commit 9a82194

Browse files
committed
Merge branch 'ADIFWSJTX' into testing_0.36
2 parents 8938ac9 + 5da54bb commit 9a82194

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

core/Wsjtx.cpp

+11
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,17 @@ void Wsjtx::insertContact(WsjtxLogADIF log)
539539

540540
adif.importNext(record);
541541

542+
// the values ​​listed below have default values ​​defined in ADIF.
543+
// These are set to N. However, WSJTX and other apps do not send
544+
// these fields, which means that all records would be set to N - do not send.
545+
// It is unacceptable. So this piece of code deletes these defaults so that
546+
// in NewContact these values ​​are set from the values ​​in the GUI.
547+
// There is a risk that some clone will start sending these values ​​as well.
548+
// In this case, it will have to be handled differently. Currently it is OK
549+
record.remove(record.indexOf("qsl_sent"));
550+
record.remove(record.indexOf("lotw_qsl_sent"));
551+
record.remove(record.indexOf("eqsl_qsl_sent"));
552+
542553
// The QSO record can be received in two formats from WSJTX (raw and ADIF).
543554
// Therefore, it is necessary to save the first record and possibly update it
544555
// with the second record and then emit the result.

0 commit comments

Comments
 (0)