From 6d6e2e83147e9f783b76be0208e460aa35b9d234 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 29 Jan 2019 11:49:11 -0500 Subject: [PATCH] Don't try to transmit a blank FT4 message! --- widgets/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 10149dce9..3a6c8b75c 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -8696,6 +8696,8 @@ void MainWindow::ft4_tx(int ntx) if(m_ntx == 4) ba=ui->tx4->text().toLocal8Bit(); if(m_ntx == 5) ba=ui->tx5->currentText().toLocal8Bit(); if(m_ntx == 6) ba=ui->tx6->text().toLocal8Bit(); + QString msg = QString::fromLatin1(ba.data()); + if(msg.trimmed().length()==0) return; //Don't transmit a blank message ba2msg(ba,message); int ichk=0; genft4_(message, &ichk, msgsent, const_cast(itone), 37, 37);