mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 13:48:42 -05:00
Ensure that m_freqNominalPeriod and m_currentBandPeriod are also initialized when rig is none or when there was no band change.
This commit is contained in:
parent
a6e6b91cee
commit
c7e7062b8a
@ -2278,6 +2278,11 @@ void MainWindow::displayDialFrequency ()
|
|||||||
m_wideGraph->setRxBand (band_name);
|
m_wideGraph->setRxBand (band_name);
|
||||||
m_lastBand = band_name;
|
m_lastBand = band_name;
|
||||||
band_changed(dial_frequency);
|
band_changed(dial_frequency);
|
||||||
|
// prevent wrong frequencies for all.txt, PSK Reporter and highlighting for late decodes after band changes
|
||||||
|
QTimer::singleShot (4500, [=] {
|
||||||
|
m_freqNominalPeriod = m_freqNominal;
|
||||||
|
m_currentBandPeriod = m_currentBand;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// search working frequencies for one we are within 10kHz of (1 Mhz
|
// search working frequencies for one we are within 10kHz of (1 Mhz
|
||||||
@ -7361,10 +7366,6 @@ void MainWindow::band_changed (Frequency f)
|
|||||||
}
|
}
|
||||||
setRig (f);
|
setRig (f);
|
||||||
setXIT (ui->TxFreqSpinBox->value ());
|
setXIT (ui->TxFreqSpinBox->value ());
|
||||||
QTimer::singleShot (4500, [=] { // prevent wrong frequencies for all.txt and PSK Reporter after band changes
|
|
||||||
m_freqNominalPeriod = m_freqNominal;
|
|
||||||
m_currentBandPeriod = m_currentBand;
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user