From 55d76dc67f7e14cb03d129c46797f987c801f441 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Thu, 17 Jan 2019 09:56:42 -0500 Subject: [PATCH] Fixed duplicate acks printing --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 71a9596..740f3fe 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -5597,12 +5597,12 @@ int MainWindow::writeMessageTextToUI(QDateTime date, QString text, int freq, boo } } + // fixup duplicate acks auto tc = c.document()->find(text); - if(!tc.isNull()&& tc.blockNumber() == tc.document()->lastBlock().blockNumber()){ + if(!tc.isNull() && text.contains(" ACK ")){ return tc.blockNumber(); } - if(found && !bold){ c.clearSelection(); c.insertText(text);