From 722dd5571aa827dedb7fb7bf5e5f23c2bd6bdfe4 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Tue, 8 Oct 2019 14:54:57 -0400 Subject: [PATCH] Fixed issue with spurious message printing --- mainwindow.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 79b4053..39c5b28 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4569,11 +4569,22 @@ bool MainWindow::hasExistingMessageBuffer(int offset, bool drift, int *pPrevOffs } bool MainWindow::hasClosedExistingMessageBuffer(int offset){ +#if 0 int range = 10; if(m_nSubMode == Varicode::JS8CallFast){ range = 16; } if(m_nSubMode == Varicode::JS8CallTurbo){ range = 32; } return offset - range <= m_lastClosedMessageBufferOffset && m_lastClosedMessageBufferOffset <= offset + range; +#elif 0 + int range = 10; + if(m_nSubMode == Varicode::JS8CallFast){ range = 16; } + if(m_nSubMode == Varicode::JS8CallTurbo){ range = 32; } + + return m_lastClosedMessageBufferOffset - range <= offset && offset <= m_lastClosedMessageBufferOffset + range; +#else + Q_UNUSED(offset); +#endif + return false; } void MainWindow::logCallActivity(CallDetail d, bool spot){