Fixed wrong airline in reverse lookup

* Air Arabia bug
* see https://discordapp.com/channels/539048679160676382/568904623151382546/608611828578254859
This commit is contained in:
Klaus Basan
2019-08-08 00:29:40 +02:00
committed by Mat Sutcliffe
parent 740cb5a536
commit b213f594c7
2 changed files with 4 additions and 4 deletions

View File

@@ -185,7 +185,7 @@ namespace BlackMisc
{
// nothing found so far
codesFound = this->findByNamesOrTelephonyDesignator(patternUsed.getName());
codesFound = this->ifPossibleReduceByTelephonyDesignator(patternUsed.getTelephonyDesignator());
codesFound = codesFound.ifPossibleReduceByTelephonyDesignator(patternUsed.getTelephonyDesignator());
codesFound = codesFound.ifPossibleReduceByCountry(patternUsed.getCountryIso());
}
else

View File

@@ -68,9 +68,9 @@ namespace BlackMisc
const QString s =
(this->hasAnyModelString() ? inApostrophes(this->getAllModelStringsAliasesAndDbKey(), true) % QStringLiteral(" ") : QString()) %
u" type: '" % this->getModelTypeAsString() %
u"' ICAO: '" % this->getAircraftIcaoCode().toQString(i18n) %
u" CG: " % this->getCG().valueRoundedWithUnit(1) %
u"' {" % m_livery.toQString(i18n) %
u"' ICAO: {" % this->getAircraftIcaoCode().toQString(i18n) %
u"} CG: " % this->getCG().valueRoundedWithUnit(1) %
u"' livery: {" % m_livery.toQString(i18n) %
u"} file: '" % m_fileName % u'\'';
return s;
}