@@ -1256,6 +1256,7 @@ QString QSO::getEQSLQSL_RCVD() const
12561256
12571257bool QSO::setEQSLQSL_SENT (const QString &_c)
12581258{
1259+ // qDebug() << Q_FUNC_INFO << " : " << _c;
12591260 if (util->isValidQSL_Sent (_c))
12601261 {
12611262 eqsl_qsl_sent = _c;
@@ -3392,15 +3393,15 @@ bool QSO::setTimeOff(const QString& data) { return setTimeOff(util->getTimeFromA
33923393bool QSO::setTimeOn (const QString& data) { return setTimeOn (util->getTimeFromADIFTimeString (data)); }
33933394
33943395bool QSO::setLoTWQSLRDate2 (const QString& data) {
3395- setLoTWQSL_RCVD (" Y" );
3396+ // setLoTWQSL_RCVD("Y");
33963397 return setLoTWQSLRDate (util->getDateFromLoTWQSLDateString (data));
33973398}
33983399bool QSO::setLoTWQSLSDate1 (const QString& data) {
3399- setLoTWQSL_SENT (" Y" );
3400+ // setLoTWQSL_SENT("Y");
34003401 return setLoTWQSLSDate (util->getDateFromLoTWQSLDateString (data));
34013402}
34023403bool QSO::setLoTWQSLSDate2 (const QString& data) {
3403- setLoTWQSL_SENT (" Y" );
3404+ // setLoTWQSL_SENT("Y");
34043405 return setLoTWQSLSDate (util->getDateFromLoTWQSLDateString (data));
34053406}
34063407
@@ -4170,11 +4171,11 @@ QString QSO::getADIF()
41704171 adifStr.append (adif->getADIFField (" eq_call" , getEQ_Call ()));
41714172
41724173 adifStr.append (adif->getADIFField (" eqsl_qsl_rcvd" , eqsl_qsl_rcvd));
4173- if (eQSLRDate.isValid ())
4174+ if (( eQSLRDate.isValid ()) && (adif-> isValidQSLRCVD (eqsl_qsl_rcvd) ))
41744175 adifStr.append (adif->getADIFField (" eqsl_qslrdate" , util->getADIFDateFromQDate (eQSLRDate) ));
41754176
41764177 adifStr.append (adif->getADIFField (" eqsl_qsl_sent" , eqsl_qsl_sent));
4177- if (eQSLSDate.isValid ())
4178+ if (( eQSLSDate.isValid ()) && (adif-> isValidQSLSENT (eqsl_qsl_sent) ))
41784179 adifStr.append (adif->getADIFField (" eqsl_qslsdate" , util->getADIFDateFromQDate (eQSLSDate) ));
41794180
41804181 if (fists>0 )
@@ -4213,10 +4214,15 @@ QString QSO::getADIF()
42134214 adifStr.append (adif->getADIFField (" k_index" , QString::number (k_index)));
42144215 adifStr.append (adif->getADIFField (" lat" , latitude));
42154216 adifStr.append (adif->getADIFField (" lon" , longitude));
4216- adifStr.append (adif->getADIFField (" lotw_qslrdate" , util->getADIFDateFromQDate (QSLLoTWRDate)));
4217- adifStr.append (adif->getADIFField (" lotw_qslsdate" , util->getADIFDateFromQDate (QSLLoTWSDate)));
4218- adifStr.append (adif->getADIFField (" lotw_qsl_rcvd" , lotw_qsl_rcvd));
4217+
42194218 adifStr.append (adif->getADIFField (" lotw_qsl_sent" , lotw_qsl_sent));
4219+ if ((QSLLoTWSDate.isValid ()) && ( adif->isValidQSLSENT (lotw_qsl_sent) ))
4220+ adifStr.append (adif->getADIFField (" lotw_qslsdate" , util->getADIFDateFromQDate (QSLLoTWSDate) ));
4221+
4222+ adifStr.append (adif->getADIFField (" lotw_qsl_rcvd" , lotw_qsl_rcvd));
4223+ if ((QSLLoTWRDate.isValid ()) && ( adif->isValidQSLRCVD (lotw_qsl_rcvd) ))
4224+ adifStr.append (adif->getADIFField (" lotw_qslrdate" , util->getADIFDateFromQDate (QSLLoTWRDate) ));
4225+
42204226
42214227 if (adif->isValidNRBursts (QString::number (getMaxBursts ())))
42224228 adifStr.append (adif->getADIFField (" max_bursts" , QString::number (getMaxBursts ()) ));
@@ -4284,14 +4290,13 @@ QString QSO::getADIF()
42844290 adifStr.append (adif->getADIFField (" qslmsg" , qslmsg));
42854291 adifStr.append (adif->getADIFField (" qsl_rcvd" , getQSL_RCVD ()));
42864292
4287- if ((QSLRDate.isValid ()) && ( (qsl_rcvd== " Y " ) || (qsl_rcvd== ' I ' ) || (qsl_rcvd== ' R ' )))
4293+ if ((QSLRDate.isValid ()) && ( adif-> isValidQSLRCVD (qsl_rcvd)))
42884294 adifStr.append (adif->getADIFField (" qslrdate" , util->getADIFDateFromQDate (QSLRDate) ));
42894295
42904296 adifStr.append (adif->getADIFField (" qsl_sent" , getQSL_SENT ()));
4291- if ((QSLSDate.isValid ()) && ( (qsl_sent== " Y " ) || (qsl_sent== ' Q ' ) || (qsl_sent== ' I ' )))
4297+ if ((QSLSDate.isValid ()) && ( adif-> isValidQSLSENT (qsl_sent)))
42924298 adifStr.append (adif->getADIFField (" qslsdate" , util->getADIFDateFromQDate (QSLSDate)));
42934299
4294-
42954300 if ((getQSL_RCVD ()==" Y" ) or (getQSL_RCVD ()==" V" )) // Valid cases to use qslrcvdVia
42964301 adifStr.append (adif->getADIFField (" qsl_rcvd_via" , qslRecVia));
42974302
0 commit comments