mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-10-31 23:57:10 -04:00
Allow for empty decode messages when extracting received reports
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6841 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
b4b89485de
commit
ed6a3fd979
@ -86,7 +86,8 @@ bool DecodedText::report(QString const& myBaseCall, QString const& dxBaseCall, /
|
|||||||
bool b = stdmsg_(msg.mid(0,22).toLatin1().constData(),22); // stdmsg is a fortran routine that packs the text, unpacks it and compares the result
|
bool b = stdmsg_(msg.mid(0,22).toLatin1().constData(),22); // stdmsg is a fortran routine that packs the text, unpacks it and compares the result
|
||||||
|
|
||||||
QStringList w=msg.split(" ",QString::SkipEmptyParts);
|
QStringList w=msg.split(" ",QString::SkipEmptyParts);
|
||||||
if(b && (w[0] == myBaseCall
|
if(w.size ()
|
||||||
|
&& b && (w[0] == myBaseCall
|
||||||
|| w[0].endsWith ("/" + myBaseCall)
|
|| w[0].endsWith ("/" + myBaseCall)
|
||||||
|| w[0].startsWith (myBaseCall + "/")
|
|| w[0].startsWith (myBaseCall + "/")
|
||||||
|| (w.size () > 1 && !dxBaseCall.isEmpty ()
|
|| (w.size () > 1 && !dxBaseCall.isEmpty ()
|
||||||
|
Loading…
Reference in New Issue
Block a user