mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-31 13:52:27 -04:00
The +2kHz check box should not adjust the frequency when starting up
Since the last monitored dial frequency is stored and restored from the settings the +2kHz setting should only set the state of the check box when initializing and not attempt to adjust the dial frequency. Merged from the wsjtx-1.4 branch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4903 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
56dc1530b7
commit
c376ffe7dd
@ -2860,12 +2860,15 @@ void MainWindow::on_cbTxLock_clicked(bool checked)
|
||||
}
|
||||
|
||||
void MainWindow::on_cbPlus2kHz_toggled(bool checked)
|
||||
{
|
||||
m_plus2kHz = checked;
|
||||
|
||||
if (m_config.transceiver_online (false)) // only update state if not
|
||||
// starting up
|
||||
{
|
||||
// Upload any queued spots before changing band
|
||||
psk_Reporter->sendReport();
|
||||
|
||||
m_plus2kHz = checked;
|
||||
|
||||
auto f = m_dialFreq;
|
||||
|
||||
if (m_plus2kHz)
|
||||
@ -2880,6 +2883,7 @@ void MainWindow::on_cbPlus2kHz_toggled(bool checked)
|
||||
m_bandEdited = true;
|
||||
band_changed (f);
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::handle_transceiver_update (Transceiver::TransceiverState s)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user