Prevent crash when transmitting a 2-word message.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3123 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-04-02 23:12:19 +00:00
parent 3f1d3a32ec
commit 57b4acc1ea

View File

@ -1385,8 +1385,7 @@ void MainWindow::guiUpdate()
} }
QString t2=QDateTime::currentDateTimeUtc().toString("hhmm"); QString t2=QDateTime::currentDateTimeUtc().toString("hhmm");
if(itext==0 and w[1]==m_myCall) { if(itext==0 and w[1]==m_myCall and w.length()>=3) {
t=w[2];
int i1; int i1;
bool ok; bool ok;
i1=t.toInt(&ok); i1=t.toInt(&ok);
@ -1403,7 +1402,7 @@ void MainWindow::guiUpdate()
} }
} }
} }
if(itext==1 or w[2]=="73") m_qsoStop=t2; if(itext==1 or (w.length()==3 and w[2]=="73")) m_qsoStop=t2;
m_restart=false; m_restart=false;
} }