Add option for returning to last monitored frequency on monitor enable

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4995 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville
2015-02-27 18:59:08 +00:00
parent a37e07bdd0
commit a249ce4c29
4 changed files with 62 additions and 31 deletions
+12 -4
View File
@@ -700,10 +700,18 @@ void MainWindow::on_monitorButton_clicked (bool checked)
{
m_diskData = false; // no longer reading WAV files
// put rig back where it was when last in control
Q_EMIT m_config.transceiver_frequency (m_lastMonitoredFrequency);
qsy (m_lastMonitoredFrequency);
setXIT (ui->TxFreqSpinBox->value ());
Frequency operating_frequency {m_dialFreq};
if (m_config.monitor_last_used ())
{
// put rig back where it was when last in control
operating_frequency = m_lastMonitoredFrequency;
Q_EMIT m_config.transceiver_frequency (operating_frequency);
}
qsy (operating_frequency);
if (m_config.monitor_last_used ())
{
setXIT (ui->TxFreqSpinBox->value ());
}
}
Q_EMIT m_config.sync_transceiver (true, checked); // gets