Highlight Callsign with f/g & b/g invalid restores highlighting

Using a Highlight Callsign UDP message with `Highlight last` false and
specifying  both  f/g  and  b/g  colours as  invalid  now  resets  the
highlighting on any matching callsign,  as well as removing the decode
highlighting internal record.
This commit is contained in:
Bill Somerville 2020-06-01 16:09:21 +01:00
parent aa4d98b6f1
commit 93db29d50a
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -608,9 +608,12 @@ void DisplayText::highlight_callsign (QString const& callsign, QColor const& bg,
}
}
}
else if (pos != highlighted_calls_.end ())
else
{
if (pos != highlighted_calls_.end ())
{
highlighted_calls_.erase (pos);
}
QTextCursor cursor {document ()};
while (!cursor.isNull ())
{