mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-21 19:55:20 -05:00
Don't allow transmitting an all-blank message.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8556 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
c001ca6d83
commit
35ae55bb4d
@ -3283,7 +3283,21 @@ void MainWindow::guiUpdate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
float fTR=float((ms%(1000*m_TRperiod)))/(1000*m_TRperiod);
|
float fTR=float((ms%(1000*m_TRperiod)))/(1000*m_TRperiod);
|
||||||
if(g_iptt==0 and ((m_bTxTime and fTR<0.75) or m_tune )) { //### Allow late starts
|
|
||||||
|
QString txMsg;
|
||||||
|
if(m_ntx == 1) txMsg=ui->tx1->text();
|
||||||
|
if(m_ntx == 2) txMsg=ui->tx2->text();
|
||||||
|
if(m_ntx == 3) txMsg=ui->tx3->text();
|
||||||
|
if(m_ntx == 4) txMsg=ui->tx4->text();
|
||||||
|
if(m_ntx == 5) txMsg=ui->tx5->currentText();
|
||||||
|
if(m_ntx == 6) txMsg=ui->tx6->text();
|
||||||
|
if(m_ntx == 7) txMsg=ui->genMsg->text();
|
||||||
|
if(m_ntx == 8) txMsg=ui->freeTextMsg->currentText();
|
||||||
|
int msgLength=txMsg.trimmed().length();
|
||||||
|
if(msgLength==0) on_stopTxButton_clicked();
|
||||||
|
|
||||||
|
if(g_iptt==0 and ((m_bTxTime and fTR<0.75) or m_tune ) and
|
||||||
|
(msgLength>0)) { //### Allow late starts
|
||||||
icw[0]=m_ncw;
|
icw[0]=m_ncw;
|
||||||
g_iptt = 1;
|
g_iptt = 1;
|
||||||
setRig ();
|
setRig ();
|
||||||
|
Loading…
Reference in New Issue
Block a user