From 94d66bc8481cbe2070ec46558e2fdd8714f197de Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Sat, 8 Aug 2020 21:25:32 +0100 Subject: [PATCH] Make FST4W scheduling l10n agnostic --- widgets/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 6c2a32c25..cceb990c0 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -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;