diff options
| author | Christoph Berg <myon@debian.org> | 2020-09-28 23:28:26 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2020-09-28 23:28:26 +0200 |
| commit | c345880e5818351aec994d60cfb9a42351a4a6bd (patch) | |
| tree | 82e554ce75a62e7cca37968ee6e8ce08972eef04 /Decoder | |
| parent | d55aefc872a0b03ac40c44e8b7d635dc0fa19f4e (diff) | |
| parent | 7aa3c56b01768ba7d38fccedc17b30a4046b3fbb (diff) | |
Update upstream source from tag 'upstream/2.3.0_rc1+repack'
Update to upstream version '2.3.0~rc1+repack'
with Debian dir 278ece20e94e89020b1ea45fb83e61a2cecbb31e
Diffstat (limited to 'Decoder')
| -rw-r--r-- | Decoder/decodedtext.cpp | 8 | ||||
| -rw-r--r-- | Decoder/decodedtext.pri | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Decoder/decodedtext.cpp b/Decoder/decodedtext.cpp index e476ecb9..04a5cc87 100644 --- a/Decoder/decodedtext.cpp +++ b/Decoder/decodedtext.cpp @@ -165,7 +165,13 @@ QString DecodedText::call() const // get the second word, most likely the de call and the third word, most likely grid void DecodedText::deCallAndGrid(/*out*/QString& call, QString& grid) const { - auto const& match = words_re.match (message_); + auto msg = message_; + auto p = msg.indexOf ("; "); + if (p >= 0) + { + msg = msg.mid (p + 2); + } + auto const& match = words_re.match (msg); call = match.captured ("word2"); grid = match.captured ("word3"); if ("R" == grid) grid = match.captured ("word4"); diff --git a/Decoder/decodedtext.pri b/Decoder/decodedtext.pri new file mode 100644 index 00000000..6aa33dc3 --- /dev/null +++ b/Decoder/decodedtext.pri @@ -0,0 +1,3 @@ +SOURCES += Decoder/decodedtext.cpp + +HEADERS += Decoder/decodedtext.h |
