Fix an issue with truncated free text messages being generated

This is an edge case when working  a call like RI9F/GM4WJS where it is
not possible to confirm receipt of the full compound callsign in a Tx5
73 message as "RI9F/GM4WJS 73" is 14 characters.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8111 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2017-09-22 22:09:11 +00:00
parent 7ff801588c
commit 1ff4d6ba52

View File

@ -4220,10 +4220,11 @@ void MainWindow::genStdMsgs(QString rpt, bool unconditional)
break;
}
}
if (hisCall != hisBase
&& m_config.type_2_msg_gen () != Configuration::type_2_msg_5_only
if (hisCall.size () <= 10 && hisCall != hisBase
&& !eme_short_codes) {
// cfm we have his full call copied as we could not do this earlier
// cfm we have his full call copied as we could not do this
// earlier, as this is a free text message we must be careful
// about the length
t = hisCall + " 73";
msgtype(t, ui->tx5->lineEdit ());
}
@ -4235,6 +4236,7 @@ void MainWindow::genStdMsgs(QString rpt, bool unconditional)
msgtype(t, ui->tx1);
}
else if (!eme_short_codes
&& hisCall.size () <= 10 // avoid truncated free text message
&& ("MSK144" != m_mode || !m_bShMsgs)) {
t=hisCall + " 73";
msgtype(t, ui->tx5->lineEdit ());