From 47f47a313fb8cc779818bf68a5f7dbc8e8a3a943 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Wed, 22 Apr 2020 11:51:30 -0400 Subject: [PATCH] Fix a lonstanding bug that causes crash when logging incomplete EU VHF Contest data. --- widgets/mainwindow.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 11910fe8a..bd37cd9f4 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3703,7 +3703,6 @@ void MainWindow::guiUpdate() QByteArray ba; QByteArray ba0; - qDebug() << "aa"; if(m_mode.startsWith ("WSPR")) { QString sdBm,msg0,msg1,msg2; sdBm.sprintf(" %d",m_dBm); @@ -3945,7 +3944,6 @@ void MainWindow::guiUpdate() } } } - qDebug() << "bb"; m_restart=false; //---------------------------------------------------------------------- } else { @@ -5583,7 +5581,7 @@ void MainWindow::on_logQSOButton_clicked() //Log QSO button case SpecOp::EU_VHF: m_rptSent=m_xSent.split(" ").at(0).left(2); m_rptRcvd=m_xRcvd.split(" ").at(0).left(2); - m_hisGrid=m_xRcvd.split(" ").at(1); + if(m_xRcvd.split(" ").size()>=2) m_hisGrid=m_xRcvd.split(" ").at(1); grid=m_hisGrid; ui->dxGridEntry->setText(grid); break;