From c6d13a79845acb2abc1cd201962ced183acb4f9c Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Tue, 6 Dec 2022 15:25:16 +0100 Subject: [PATCH] Minor code correction. --- widgets/mainwindow.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 537b6b376..7af96b87e 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3895,12 +3895,11 @@ void MainWindow::readFromStdout() //readFromStdout bool bProcessMsgNormally=ui->respondComboBox->currentText()=="CQ: First" or (ui->respondComboBox->currentText()=="CQ: Max Dist" and m_ActiveStationsWidget==NULL) or (m_ActiveStationsWidget!=NULL and !m_ActiveStationsWidget->isVisible()); - if (decodedtext.messageWords().length() >= 2) { - QString t=decodedtext.messageWords()[2]; - if(t.contains("R+") or t.contains("R-") or t=="R" or t=="RRR" or t=="RR73") bProcessMsgNormally=true; - } - else { - bProcessMsgNormally=true; + if (decodedtext.messageWords().length() >= 3) { + QString t=decodedtext.messageWords()[2]; + if(t.contains("R+") or t.contains("R-") or t=="R" or t=="RRR" or t=="RR73") bProcessMsgNormally=true; + } else { + bProcessMsgNormally=true; } if(bProcessMsgNormally) { m_bDoubleClicked=true;