1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2025-07-01 00:15:22 -04:00

Merge branch 'f4exb:master' into psk31_mod

This commit is contained in:
srcejon 2023-09-07 10:03:58 +01:00 committed by GitHub
commit 9b4d5fc4d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -457,11 +457,23 @@ QString AircraftInformation::getFlag() const
{ {
// Try letters before '-' // Try letters before '-'
prefix = m_registration.left(idx); prefix = m_registration.left(idx);
// Both China and Taiwan use B prefix. China regs are <= 4 digits, with Taiwan 5
if (prefix == "B")
{
if (m_registration.size() >= 7) {
flag = "taiwan";
} else {
flag = "china";
}
}
else
{
if (m_prefixMap->contains(prefix)) { if (m_prefixMap->contains(prefix)) {
flag = m_prefixMap->value(prefix); flag = m_prefixMap->value(prefix);
} }
} }
} }
}
else else
{ {
// No '-' Could be one of a few countries or military. // No '-' Could be one of a few countries or military.