From 6ddbd47f8145913409a923ec537acd10a9a79223 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Tue, 1 Oct 2019 21:27:13 -0400 Subject: [PATCH] Hide compound calls for acks when hiding hbs and acks --- mainwindow.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index e20e377..0749dee 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -11425,9 +11425,14 @@ void MainWindow::displayBandActivity() { // hide heartbeats and acks if we have heartbeating hidden if(item.text.contains(" HB ") || item.text.contains(" ACK ")){ shouldDisplay = false; + + // hide the previous item if this it shouldn't be displayed either... + if(i > 0 && items[i-1].shouldDisplay && items[i-1].text.endsWith(": ")){ + items[i-1].shouldDisplay = false; + } } - // if our previous item should not be displayed and we have a MSG ID, then don't display it either. + // if our previous item should not be displayed (or this is the first frame) and we have a MSG ID, then don't display it either. if( (i == 0 || (i > 0 && !items[i-1].shouldDisplay)) && (item.text.contains(" MSG ID "))