From be2ce2a6c4df6da09c8f6a36c5f1460a106a1524 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 22 Mar 2022 13:03:51 -0400 Subject: [PATCH] Remove stray 'a7' flags from decodes when displaying points. --- widgets/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index ef534f2a5..de838adc2 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -3519,12 +3519,15 @@ void MainWindow::activeWorked(QString call, QString band) void MainWindow::readFromStdout() //readFromStdout { + QFile f(m_appDir + "/DisplayPoints"); + bool bDisplayPoints = f.exists() or m_config.special_op_id()==SpecOp::ARRL_DIGI; while(proc_jt9.canReadLine()) { auto line_read = proc_jt9.readLine (); if (auto p = std::strpbrk (line_read.constData (), "\n\r")) { // truncate before line ending chars line_read = line_read.left (p - line_read.constData ()); } + if(bDisplayPoints) line_read=line_read.replace("a7"," "); bool haveFSpread {false}; float fSpread {0.}; if (m_mode.startsWith ("FST4")) @@ -3628,8 +3631,6 @@ void MainWindow::readFromStdout() //readFromStdout } } - QFile f(m_appDir + "/DisplayPoints"); - bool bDisplayPoints = f.exists() or m_config.special_op_id()==SpecOp::ARRL_DIGI; //Left (Band activity) window if(!bAvgMsg) { if(m_mode=="FT8" and SpecOp::FOX == m_config.special_op_id()) {