summaryrefslogtreecommitdiff
path: root/widgets/displaytext.cpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2020-06-02 20:44:28 +0200
committerChristoph Berg <myon@debian.org>2020-06-02 20:44:28 +0200
commit5c05cfa3903d8a71d77f4b3dc1d2d0c7a043c6d6 (patch)
treeb6617065dc8e840bccb26a72d22d945353a8f064 /widgets/displaytext.cpp
parent458b033b8ae7818d50e80f51b12c0c43bbd0d3e2 (diff)
New upstream version 2.2.0+repackupstream/2.2.0+repack
Diffstat (limited to 'widgets/displaytext.cpp')
-rw-r--r--widgets/displaytext.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/widgets/displaytext.cpp b/widgets/displaytext.cpp
index b3ccf8eb..ae865bc9 100644
--- a/widgets/displaytext.cpp
+++ b/widgets/displaytext.cpp
@@ -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 ())
{