From e14fbd2fd004ee205e2bbeed63372cfbc2aba361 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Mon, 12 Nov 2018 10:29:26 -0500 Subject: [PATCH] Expand 22-bit messages to 37 bits. This fixes the double-click failure. --- widgets/mainwindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 287ed6133..6fccb6fd9 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -2955,7 +2955,11 @@ void MainWindow::readFromStdout() //readFromStdout { while(proc_jt9.canReadLine()) { QByteArray t=proc_jt9.readLine(); - if(m_mode=="JT65") t=t.left(43) + " " + t.mid(43,-1); //Pad 22-char msg to 37 chars + if(m_mode!="FT8") { + //Pad 22-char msg to 37 chars + t=t.left(43) + " " + t.mid(43,-1); + t=t.trimmed(); + } // qint64 ms=QDateTime::currentMSecsSinceEpoch() - m_msec0; bool bAvgMsg=false; int navg=0;