From f33e67bc90238dfc2ee9c8fdcdb4056a6ca147d3 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 10 Oct 2018 13:18:40 -0400 Subject: [PATCH] Better logic for displaying the Fox/Contest log window. --- mainwindow.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index ab9a19af2..42f2ebbb4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1172,7 +1172,7 @@ void MainWindow::readSettings() m_settings->endGroup (); setContestType(); - if(displayMsgAvg or (m_nContest>0 and m_nContest<6)) on_actionMessage_averaging_triggered(); + if(displayMsgAvg) on_actionMessage_averaging_triggered(); } void MainWindow::setContestType() @@ -1689,9 +1689,6 @@ void MainWindow::on_actionSettings_triggered() //Setup Dialog ui->actionEnable_AP_JT65->setVisible(false); } m_opCall=m_config.opCall(); - if(m_msgAvgWidget==NULL and m_nContest>0 and m_nContest<6) { - on_actionMessage_averaging_triggered(); - } } setColorHighlighting(); } @@ -3754,8 +3751,8 @@ void MainWindow::guiUpdate() //Once per second: if(nsec != m_sec0) { -// qDebug() << "OneSec:" << m_nContest; - +// qDebug() << "OneSec:" << m_nContest << m_msgAvgWidget; + 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(); } else {