mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 05:38:46 -05:00
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:
parent
aa4d98b6f1
commit
93db29d50a
@ -608,9 +608,12 @@ void DisplayText::highlight_callsign (QString const& callsign, QColor const& bg,
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (pos != highlighted_calls_.end ())
|
||||
else
|
||||
{
|
||||
highlighted_calls_.erase (pos);
|
||||
if (pos != highlighted_calls_.end ())
|
||||
{
|
||||
highlighted_calls_.erase (pos);
|
||||
}
|
||||
QTextCursor cursor {document ()};
|
||||
while (!cursor.isNull ())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user