diff options
| author | Christoph Berg <myon@debian.org> | 2020-06-02 20:44:45 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-06-02 20:44:45 +0200 |
| commit | 2633e05ff7d54e94d5e21877dcd6469140b9e0c9 (patch) | |
| tree | 40503c993f9cd433b4f48baac1d9b100d76de541 /widgets/displaytext.cpp | |
| parent | 5729bccd1e0b5c99d992b694bc203a977aeb386b (diff) | |
| parent | 5c05cfa3903d8a71d77f4b3dc1d2d0c7a043c6d6 (diff) | |
Update upstream source from tag 'upstream/2.2.0+repack'
Update to upstream version '2.2.0+repack'
with Debian dir 420018967e31760c7822abd007c7e2084c580e1b
Diffstat (limited to 'widgets/displaytext.cpp')
| -rw-r--r-- | widgets/displaytext.cpp | 7 |
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 ()) { |
