mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-07 00:14:46 -04:00
When operating in JT9+JT65 mode, changing band to 60 m has moved the
"JT65 nnnn JT9" blue line to 0 Hz. Now it also moves the spinner to 0 Hz, as it should have done. Subsequent QSY to another band will reset the blue line and spinner to where they had been, before the QSY to 60 m. Thanks to W9MDB for this patch. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7595 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+12
-4
@@ -1755,16 +1755,24 @@ void MainWindow::displayDialFrequency ()
|
||||
ui->bandComboBox->setCurrentText (band_name);
|
||||
m_wideGraph->setRxBand (band_name);
|
||||
m_lastBand = band_name;
|
||||
// For 60M we'll move the JT9 offset to zero
|
||||
// For 60M we'll move the JT9 offset to zero and remember so we can restore
|
||||
static int saveRxRange = -1;
|
||||
if (saveRxRange < 0) saveRxRange = m_wideGraph->Fmin();
|
||||
if (saveRxRange < 0) {
|
||||
m_settings->beginGroup ("WideGraph");
|
||||
saveRxRange = m_settings->value ("FminSave", m_wideGraph->Fmin()).toInt ();
|
||||
m_settings->endGroup();
|
||||
}
|
||||
if (band_name == "60m") {
|
||||
saveRxRange = m_wideGraph->Fmin();
|
||||
m_wideGraph->setRxRange(0);
|
||||
// We need to remember our save value in case we restart on 60M
|
||||
m_settings->beginGroup ("WideGraph");
|
||||
m_settings->setValue ("FminSave", saveRxRange);
|
||||
m_settings->endGroup();
|
||||
m_wideGraph->setRxRangeAndSplitSpinBox(0);
|
||||
|
||||
}
|
||||
else {
|
||||
m_wideGraph->setRxRange(saveRxRange);
|
||||
m_wideGraph->setRxRangeAndSplitSpinBox(saveRxRange);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user