From 5b22280631d7adae582ec76e557a00ff52a43e47 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sun, 28 Jun 2020 16:26:22 -0400 Subject: [PATCH 1/2] Fix the "double-click on AP decode" crash. --- widgets/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 645d7c810..5569385c0 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4501,7 +4501,7 @@ void MainWindow::doubleClickOnCall(Qt::KeyboardModifiers modifiers) } return; } - DecodedText message {cursor.block().text().trimmed().remove("TU; ")}; + DecodedText message {cursor.block().text().trimmed().left(61).remove("TU; ")}; m_bDoubleClicked = true; processMessage (message, modifiers); } From 494481fa8aa8c8c44d9a6ff761366a1af358feac Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sun, 28 Jun 2020 20:22:24 -0400 Subject: [PATCH 2/2] Remove a poisonous but unused line of code. --- widgets/mainwindow.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index 71f17093a..6bdd04347 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4575,8 +4575,6 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie int nw=w.size(); if(nw>=4) { if(message_words.size()<3) return; - // Temporary? Correct for the fact that message.deCallAndGrid() does not work for EU VHF contest messages - QString t=message_words.at(nw-2); int n=w.at(nw-2).toInt(); if(n>=520001 and n<=592047) { hiscall=w.at(1);