mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-29 12:52:28 -04:00
Make LogQSO a "Do Nothing" if callsign is blank.
Fix a bug in handling messages with no embedded blanks. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3115 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
65c5d7a735
commit
0c8950ff58
@ -1348,8 +1348,10 @@ void MainWindow::guiUpdate()
|
|||||||
f.close();
|
f.close();
|
||||||
}
|
}
|
||||||
QStringList w=t.split(" ",QString::SkipEmptyParts);
|
QStringList w=t.split(" ",QString::SkipEmptyParts);
|
||||||
|
t="";
|
||||||
|
if(w.length()==3) t=w[2];
|
||||||
icw[0]=0;
|
icw[0]=0;
|
||||||
if(m_After73 and (w[2]=="73" or itext!=0)) {
|
if(m_After73 and (t=="73" or itext!=0)) {
|
||||||
icw[0]=m_ncw;
|
icw[0]=m_ncw;
|
||||||
if(m_promptToLog) on_logQSOButton_clicked();
|
if(m_promptToLog) on_logQSOButton_clicked();
|
||||||
}
|
}
|
||||||
@ -1945,6 +1947,7 @@ void MainWindow::on_genStdMsgsPushButton_clicked() //genStdMsgs button
|
|||||||
|
|
||||||
void MainWindow::on_logQSOButton_clicked() //Log QSO button
|
void MainWindow::on_logQSOButton_clicked() //Log QSO button
|
||||||
{
|
{
|
||||||
|
if(m_hisCall=="") return;
|
||||||
QDateTime t = QDateTime::currentDateTimeUtc();
|
QDateTime t = QDateTime::currentDateTimeUtc();
|
||||||
QString date=t.toString("yyyyMMdd");
|
QString date=t.toString("yyyyMMdd");
|
||||||
QFile f("wsjtx.log");
|
QFile f("wsjtx.log");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user