Fixed BEACON ACK printing overwrite

This commit is contained in:
Jordan Sherer 2018-10-16 17:47:38 -04:00
parent c731fa51ce
commit a3eaf1cf74

View File

@ -8538,7 +8538,7 @@ void MainWindow::processCommandActivity() {
// BEACON ACKs 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 != "BEACON ACK"); /* && isRecentOffset(d.freq);*/
bool shouldOverwrite = (!d.cmd.contains("BEACON ACK")); /* && 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...