From f4b640df75e71c91df76e33e23744f0664c35556 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Thu, 11 Oct 2018 01:01:38 -0400 Subject: [PATCH] Fixed incremental directed decode for compound calls --- mainwindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 8a7c6e9..2373f09 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -8212,6 +8212,18 @@ void MainWindow::processRxActivity() { ){ d.isBuffered = true; shouldDisplay = true; + + if(!m_messageBuffer[prevOffset].compound.isEmpty()){ + //qDebug() << "should display compound too because at this point it hasn't been displayed" << m_messageBuffer[prevOffset].compound.last().call; + + auto lastCompound = m_messageBuffer[prevOffset].compound.last(); + + // fixup compound call incremental text + d.text = QString("%1: %2").arg(lastCompound.call).arg(d.text); + d.utcTimestamp = qMin(d.utcTimestamp, lastCompound.utcTimestamp); + } + + } else { // if this is a _partial_ directed message, skip until the complete call comes through. if(d.isDirected && d.text.contains("<....>")){