Allow "TU; ..." msgs only in RTTY mode, for now. Fix a bug in adif.cpp.

This commit is contained in:
Joe Taylor 2018-10-09 16:33:31 -04:00
parent 343cef2e03
commit b7dc5de1ad
3 changed files with 4 additions and 2 deletions

View File

@ -208,7 +208,8 @@ QByteArray ADIF::QSOToADIF(QString const& hisCall, QString const& hisGrid, QStri
if(xSent!="") t += " <STX_STRING:" + QString::number(xSent.length()) + ">" + xSent; if(xSent!="") t += " <STX_STRING:" + QString::number(xSent.length()) + ">" + xSent;
if(xRcvd!="") { if(xRcvd!="") {
t += " <SRX_STRING:" + QString::number(xRcvd.length()) + ">" + xRcvd; t += " <SRX_STRING:" + QString::number(xRcvd.length()) + ">" + xRcvd;
QString t1=xRcvd.split(" ").at(1); QString t1="";
if(xRcvd.split(" ").size()==2) t1=xRcvd.split(" ").at(1);
if(t1.toInt()>0) { if(t1.toInt()>0) {
t += " <SRX:" + QString::number(t1.length()) + ">" + t1; t += " <SRX:" + QString::number(t1.length()) + ">" + t1;
} else { } else {

View File

@ -4473,6 +4473,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie
} }
else { // nothing for us else { // nothing for us
if(message_words.size () > 3 // enough fields for a normal message 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(1).contains(m_baseCall) || "DE" == message_words.at(1))
&& (!message_words.at(2).contains(qso_partner_base_call) and !bEU_VHF_w2)) { && (!message_words.at(2).contains(qso_partner_base_call) and !bEU_VHF_w2)) {
// Queue up the next QSO partner // Queue up the next QSO partner