Correct a flaw in validating contest exchange data when logging.

This commit is contained in:
Joe Taylor 2019-01-08 08:40:40 -05:00
parent c4d078f55f
commit 9226d0829f

View File

@ -142,7 +142,7 @@ void LogQSO::accept()
if(xrcvd!="" and hisGrid!=xrcvd) hisGrid=xrcvd; if(xrcvd!="" and hisGrid!=xrcvd) hisGrid=xrcvd;
} }
if (special_op == SpOp::RTTY) { if ((special_op == SpOp::RTTY and xsent!="" and xrcvd!="")) {
if(rptSent=="" or !xsent.contains(rptSent+" ")) rptSent=xsent.split(" ",QString::SkipEmptyParts).at(0); if(rptSent=="" or !xsent.contains(rptSent+" ")) rptSent=xsent.split(" ",QString::SkipEmptyParts).at(0);
if(rptRcvd=="" or !xrcvd.contains(rptRcvd+" ")) rptRcvd=xrcvd.split(" ",QString::SkipEmptyParts).at(0); if(rptRcvd=="" or !xrcvd.contains(rptRcvd+" ")) rptRcvd=xrcvd.split(" ",QString::SkipEmptyParts).at(0);
} }