diff --git a/logbook/adif.cpp b/logbook/adif.cpp index 4b5cb42e9..b076be8e8 100644 --- a/logbook/adif.cpp +++ b/logbook/adif.cpp @@ -208,7 +208,8 @@ QByteArray ADIF::QSOToADIF(QString const& hisCall, QString const& hisGrid, QStri if(xSent!="") t += " " + xSent; if(xRcvd!="") { t += " " + xRcvd; - QString t1=xRcvd.split(" ").at(1); + QString t1=""; + if(xRcvd.split(" ").size()==2) t1=xRcvd.split(" ").at(1); if(t1.toInt()>0) { t += " " + t1; } else { diff --git a/logqso.cpp b/logqso.cpp index ef3dd3778..64e2728ae 100644 --- a/logqso.cpp +++ b/logqso.cpp @@ -121,7 +121,7 @@ void LogQSO::accept() QString strDialFreq(QString::number(m_dialFreq / 1.e6,'f',6)); operator_call = ui->loggedOperator->text(); //Log this QSO to ADIF file "wsjtx_log.adi" - QString filename = "wsjtx_log.adi"; // TODO allow user to set + QString filename = "wsjtx_log.adi"; // TODO allow user to set ADIF adifile; auto adifilePath = QDir {QStandardPaths::writableLocation (QStandardPaths::DataLocation)}.absoluteFilePath ("wsjtx_log.adi"); adifile.init(adifilePath); diff --git a/mainwindow.cpp b/mainwindow.cpp index f71af949e..a7a449e97 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4473,6 +4473,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie } else { // nothing for us if(message_words.size () > 3 // enough fields for a normal message + && m_nContest==RTTY && (message_words.at(1).contains(m_baseCall) || "DE" == message_words.at(1)) && (!message_words.at(2).contains(qso_partner_base_call) and !bEU_VHF_w2)) { // Queue up the next QSO partner