From f9ab37530c315b4ca10d08801d5431067d63aaf3 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Mon, 9 Jul 2018 10:10:04 -0400 Subject: [PATCH] Only clear activity on actual band change, not freq change --- mainwindow.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 9bffe31..1e277b3 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -3180,7 +3180,7 @@ void MainWindow::readFromStdout() //readFromStdout d.utcTimestamp = QDateTime::currentDateTimeUtc(); m_rxFrameQueue.append(d); - if(d.text.contains(m_config.my_callsign())){ + if(!m_config.my_callsign().isEmpty() && d.text.contains(m_config.my_callsign())){ m_rxDirectedCache.insert(audioFreq/10*10, new QDateTime(QDateTime::currentDateTimeUtc()), 25); } } @@ -7640,7 +7640,9 @@ void MainWindow::postDecode (bool is_new, QString const& message) textItem->setBackground(QBrush(m_config.color_CQ())); } - if (text.last().contains(m_config.my_callsign()) || m_rxDirectedCache.contains(offset/10*10)){ + if ((!m_config.my_callsign().isEmpty() && text.last().contains(m_config.my_callsign())) || + (m_rxDirectedCache.contains(offset/10*10)) + ){ offsetItem->setBackground(QBrush(m_config.color_MyCall())); snrItem->setBackground(QBrush(m_config.color_MyCall())); textItem->setBackground(QBrush(m_config.color_MyCall()));