Repair invalid string references

This commit is contained in:
Bill Somerville 2020-10-21 13:09:10 +01:00
parent e99f22a5d2
commit 2a2e120d7c
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -9117,15 +9117,15 @@ void MainWindow::write_all(QString txRx, QString message)
QString msg;
QString mode_string;
if (message[4]==' ') {
if (message.size () > 5 && message[4]==' ') {
msg=message.mid(4,-1);
} else {
msg=message.mid(6,-1);
}
if (message[19]=='#') {
if (message.size () > 19 && message[19]=='#') {
mode_string="JT65 ";
} else if (message[19]=='@') {
} else if (message.size () > 19 && message[19]=='@') {
mode_string="JT9 ";
} else {
mode_string=m_mode.leftJustified(6,' ');