Make FST4W scheduling l10n agnostic

This commit is contained in:
Bill Somerville 2020-08-08 21:25:32 +01:00
parent 09dc647c12
commit 94d66bc848
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -5741,7 +5741,7 @@ void MainWindow::on_tx6_editingFinished() //tx6 edited
void MainWindow::on_RoundRobin_currentTextChanged(QString text)
{
ui->sbTxPercent->setEnabled(text=="Random");
ui->sbTxPercent->setEnabled (text == tr ("Random"));
m_WSPR_tx_next = false; // cancel any pending Tx to avoid
// undesirable consecutive Tx periods
}
@ -6642,7 +6642,7 @@ void MainWindow::WSPR_config(bool b)
ui->label_7->setVisible(!b and ui->cbMenus->isChecked());
ui->logQSOButton->setVisible(!b);
ui->DecodeButton->setEnabled(!b);
ui->sbTxPercent->setEnabled (m_mode != "FST4W" || "Random" == ui->RoundRobin->currentText ());
ui->sbTxPercent->setEnabled (m_mode != "FST4W" || tr ("Random") == ui->RoundRobin->currentText ());
ui->band_hopping_group_box->setVisible(true);
ui->RoundRobin->setVisible(m_mode=="FST4W");
ui->RoundRobin->lineEdit()->setAlignment(Qt::AlignCenter);
@ -8141,7 +8141,7 @@ void MainWindow::on_pbTxNext_clicked(bool b)
void MainWindow::WSPR_scheduling ()
{
QString t=ui->RoundRobin->currentText();
if(m_mode=="FST4W" and t!="Random") {
if(m_mode=="FST4W" and t != tr ("Random")) {
bool ok;
int i=t.left (1).toInt (&ok) - 1;
if (!ok) return;