From d4f4057751d3e9259ed0c5713ad9ecc4271df57d Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Fri, 5 Feb 2021 16:49:56 -0500 Subject: [PATCH] Better way of updating m_lastQSOProgress, when signal report is first sent. --- widgets/mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 6dc3f008e..bd1e609bb 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4783,7 +4783,6 @@ void MainWindow::doubleClickOnCall(Qt::KeyboardModifiers modifiers) void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifiers modifiers) { - m_lastQSOProgress=m_QSOProgress; // decode keyboard modifiers we are interested in auto shift = modifiers.testFlag (Qt::ShiftModifier); auto ctrl = modifiers.testFlag (Qt::ControlModifier); @@ -5192,7 +5191,10 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie qDebug() << "aa" << m_lastQSOProgress << m_QSOProgress << rpt << m_lastMessageSent.trimmed(); // Keep signal report fixed during a QSO. if((m_lastQSOProgress < REPORT or m_lastQSOProgress > ROGER_REPORT) and - (m_QSOProgress==REPORT or m_QSOProgress==ROGER_REPORT)) ui->rptSpinBox->setValue(n); + (m_QSOProgress==REPORT or m_QSOProgress==ROGER_REPORT)) { + ui->rptSpinBox->setValue(n); + m_lastQSOProgress=m_QSOProgress; + } // Don't genStdMsgs if we're already sending 73, or a "TU; " msg is queued. m_bTUmsg=false; //### Temporary: disable use of "TU;" messages