From 9564ccdcc50e4f6b020766cd96c3e44674ffb2d3 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Sun, 29 Mar 2020 22:18:44 -0400 Subject: [PATCH] Do not overwrite SNR responses --- mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index b4d0152..e587824 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -10904,9 +10904,9 @@ void MainWindow::processCommandActivity() { c.movePosition(QTextCursor::End); ui->textEditRX->setTextCursor(c); - // ACKs are the most likely source of items to be overwritten (multiple responses at once)... + // ACKs and SNRs are the most likely source of items to be overwritten (multiple responses at once)... // so don't overwrite those (i.e., print each on a new line) - bool shouldOverwrite = (!d.cmd.contains(" ACK")); /* && isRecentOffset(d.freq);*/ + bool shouldOverwrite = (!d.cmd.contains(" ACK") && !d.cmd.contains(" SNR")); /* && isRecentOffset(d.freq);*/ if(shouldOverwrite && ui->textEditRX->find(d.utcTimestamp.time().toString(), QTextDocument::FindBackward)){ // ... maybe we could delete the last line that had this message on this frequency...