Fixed highlighting when my call apprears in the band activity

This commit is contained in:
Jordan Sherer 2018-09-12 10:05:35 -04:00
parent 0722bdad52
commit 1181e68f27

View File

@ -10054,7 +10054,11 @@ void MainWindow::displayBandActivity() {
}
bool isDirectedAllCall = false;
if (isDirectedOffset(offset, &isDirectedAllCall) && !isDirectedAllCall) {
// TODO: jsherer - there's a potential here for a previous allcall o poison the highlight.
if (
(isDirectedOffset(offset, &isDirectedAllCall) && !isDirectedAllCall) ||
(text.last().contains(Radio::base_callsign(m_config.my_callsign())))
) {
offsetItem->setBackground(QBrush(m_config.color_MyCall()));
ageItem->setBackground(QBrush(m_config.color_MyCall()));
snrItem->setBackground(QBrush(m_config.color_MyCall()));