Corrected the logic for setting rig frequency to the Default Frequency

on the Setup screen.


git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3099 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2013-03-25 20:15:30 +00:00
parent e8177a5887
commit f26dd5ed1d

View File

@ -2205,7 +2205,8 @@ void MainWindow::on_actionLog_dB_reports_to_Comments_triggered(bool checked)
void MainWindow::on_bandComboBox_currentIndexChanged(int index) void MainWindow::on_bandComboBox_currentIndexChanged(int index)
{ {
m_band=index; m_band=index;
m_dialFreq=dFreq[index]; QString t=m_dFreq[index];
m_dialFreq=t.toDouble();
dialFreqChanged2(m_dialFreq); dialFreqChanged2(m_dialFreq);
if(m_catEnabled) { if(m_catEnabled) {
int nHz=int(1000000.0*m_dialFreq + 0.5); int nHz=int(1000000.0*m_dialFreq + 0.5);