From f4c0e7803b5f367888b114c44e73d5db544fd01e Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 25 Apr 2020 16:28:05 -0400 Subject: [PATCH] Don't crash after double-click on a EU_VHF message with <...>. --- widgets/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index afaa6ca49..5ce930f96 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -4520,6 +4520,7 @@ void MainWindow::processMessage (DecodedText const& message, Qt::KeyboardModifie QStringList w=message.string().mid(22).remove("<").remove(">").split(" ",QString::SkipEmptyParts); 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();