mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-16 09:01:59 -05:00
Don't try to transmit a blank FT4 message!
This commit is contained in:
parent
e98231d4c1
commit
6d6e2e8314
@ -8696,6 +8696,8 @@ void MainWindow::ft4_tx(int ntx)
|
|||||||
if(m_ntx == 4) ba=ui->tx4->text().toLocal8Bit();
|
if(m_ntx == 4) ba=ui->tx4->text().toLocal8Bit();
|
||||||
if(m_ntx == 5) ba=ui->tx5->currentText().toLocal8Bit();
|
if(m_ntx == 5) ba=ui->tx5->currentText().toLocal8Bit();
|
||||||
if(m_ntx == 6) ba=ui->tx6->text().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);
|
ba2msg(ba,message);
|
||||||
int ichk=0;
|
int ichk=0;
|
||||||
genft4_(message, &ichk, msgsent, const_cast<int *>(itone), 37, 37);
|
genft4_(message, &ichk, msgsent, const_cast<int *>(itone), 37, 37);
|
||||||
|
Loading…
Reference in New Issue
Block a user