More consistent Tx Next button behaviour

This commit is contained in:
Bill Somerville 2020-08-15 15:57:29 +01:00
parent 45f28aff45
commit ec623deb9f
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -3742,6 +3742,7 @@ void MainWindow::guiUpdate()
m_tuneup=false; //This is not an ATU tuneup
bool btx = m_auto && m_WSPR_tx_next; // To Tx, we need m_auto and
// scheduled transmit
m_WSPR_tx_next = false;
if(btx) {
m_ntr=-1; //This says we will have transmitted
ui->pbTxNext->setChecked (false);
@ -5756,8 +5757,6 @@ void MainWindow::on_tx6_editingFinished() //tx6 edited
void MainWindow::on_RoundRobin_currentTextChanged(QString text)
{
ui->sbTxPercent->setEnabled (text == tr ("Random"));
m_WSPR_tx_next = false; // cancel any pending Tx to avoid
// undesirable consecutive Tx periods
}
@ -8138,7 +8137,6 @@ void MainWindow::on_pbTxNext_clicked(bool b)
{
if (b && !ui->autoButton->isChecked ())
{
m_WSPR_tx_next = false; // cancel any pending start from schedule
ui->autoButton->click (); // make sure Tx is possible
}
}