From 8734a4639be66fdb9b55ee9edd9708b41f4139e2 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 5 Jun 2015 13:42:45 +0000 Subject: [PATCH] Make the WSPR-mode Tx Freq spinner track the red Tx Freq marker on Waterfall. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5537 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index c34ba7c19..4ef40570a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1090,10 +1090,13 @@ void MainWindow::bumpFqso(int n) //bumpFqso() { ui->RxFreqSpinBox->setValue (i); } - if(ctrl && ui->TxFreqSpinBox->isEnabled ()) - { + if(ctrl and m_mode.mid(0,4)=="WSPR") { + ui->WSPRfreqSpinBox->setValue(i); + } else { + if(ctrl && ui->TxFreqSpinBox->isEnabled ()) { ui->TxFreqSpinBox->setValue (i); } + } } void MainWindow::qsy (Frequency f) @@ -3621,10 +3624,13 @@ void MainWindow::setFreq4(int rxFreq, int txFreq) ui->RxFreqSpinBox->setValue(rxFreq); } - if (ui->TxFreqSpinBox->isEnabled ()) - { + if(m_mode.mid(0,4)=="WSPR") { + ui->WSPRfreqSpinBox->setValue(txFreq); + } else { + if (ui->TxFreqSpinBox->isEnabled ()) { ui->TxFreqSpinBox->setValue(txFreq); } + } } void MainWindow::on_cbTxLock_clicked(bool checked)