From 66ea958370a6ef8492e0497a298f566f329f92ba Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 15 Oct 2018 11:09:54 -0400 Subject: [PATCH] Fix bug that started Fox with NSlots=5, until the spinner was changed. --- mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 269720ecb..7b817509a 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1091,7 +1091,8 @@ void MainWindow::readSettings() ui->cbFirst->setChecked(m_settings->value("CallFirst",true).toBool()); ui->comboBoxHoundSort->setCurrentIndex(m_settings->value("HoundSort",3).toInt()); ui->sbNlist->setValue(m_settings->value("FoxNlist",12).toInt()); - ui->sbNslots->setValue(m_settings->value("FoxNslots",5).toInt()); + m_Nslots=m_settings->value("FoxNslots",5).toInt(); + ui->sbNslots->setValue(m_Nslots); ui->sbMax_dB->setValue(m_settings->value("FoxMaxDB",30).toInt()); m_settings->endGroup(); @@ -3757,7 +3758,7 @@ void MainWindow::guiUpdate() //Once per second: if(nsec != m_sec0) { -// qDebug() << "OneSec:" << m_nContest << m_msgAvgWidget; +// qDebug() << "OneSec:" << m_nContest << m_Nslots; if(!m_msgAvgWidget and m_nContest>0 and m_nContest<6) on_actionFox_Log_triggered(); if(m_freqNominal!=0 and m_freqNominal<50000000 and m_config.enable_VHF_features()) { if(!m_bVHFwarned) vhfWarning();