From 4fb06dda43563b88e4453698a4bdabf022e931ed Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 28 Mar 2022 17:25:17 -0400 Subject: [PATCH] Don't put a report into the DxGrid box. Reply to report with R+report. --- widgets/mainwindow.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 3f4033fe1..5cc37c30c 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3758,14 +3758,18 @@ void MainWindow::readFromStdout() //readFromStdout if(points>m_maxPoints) { m_maxPoints=points; m_deCall=deCall; - m_deGrid=deGrid; m_bDoubleClicked=true; ui->dxCallEntry->setText(deCall); - ui->dxGridEntry->setText(deGrid); - genStdMsgs(QString::number(decodedtext.snr())); int ntx=2; bool bContest=m_config.special_op_id()==SpecOp::NA_VHF or m_config.special_op_id()==SpecOp::ARRL_DIGI; if(bContest) ntx=3; + if(deGrid.contains(grid_regexp)) { + m_deGrid=deGrid; + ui->dxGridEntry->setText(deGrid); + } else { + ntx=3; + } + genStdMsgs(QString::number(decodedtext.snr())); setTxMsg(ntx); } }