mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Ref T701, typo
This commit is contained in:
@@ -915,7 +915,7 @@ namespace BlackCore
|
|||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CAircraftMatcher::isKnowAircraftDesignator(const QString &candidate, const CCallsign &callsign, CStatusMessageList *log)
|
bool CAircraftMatcher::isKnownAircraftDesignator(const QString &candidate, const CCallsign &callsign, CStatusMessageList *log)
|
||||||
{
|
{
|
||||||
if (!sApp || sApp->isShuttingDown() || !sApp->hasWebDataServices()) { return false; }
|
if (!sApp || sApp->isShuttingDown() || !sApp->hasWebDataServices()) { return false; }
|
||||||
if (!CAircraftIcaoCode::isValidDesignator(candidate))
|
if (!CAircraftIcaoCode::isValidDesignator(candidate))
|
||||||
|
|||||||
@@ -199,9 +199,12 @@ namespace BlackCore
|
|||||||
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
|
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
|
||||||
BlackMisc::CStatusMessageList *log = nullptr);
|
BlackMisc::CStatusMessageList *log = nullptr);
|
||||||
|
|
||||||
//! Is this designator known?
|
//! Is this aircraft designator known?
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
static bool isKnowAircraftDesignator(
|
static bool isKnownAircraftDesignator(
|
||||||
|
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
|
||||||
|
BlackMisc::CStatusMessageList *log = nullptr);
|
||||||
|
|
||||||
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
|
const QString &candidate, const BlackMisc::Aviation::CCallsign &callsign = {},
|
||||||
BlackMisc::CStatusMessageList *log = nullptr);
|
BlackMisc::CStatusMessageList *log = nullptr);
|
||||||
|
|
||||||
|
|||||||
@@ -789,7 +789,7 @@ namespace BlackCore
|
|||||||
if (!aircraftIcao.hasValidDbKey())
|
if (!aircraftIcao.hasValidDbKey())
|
||||||
{
|
{
|
||||||
aircraftIcao = CAircraftIcaoCode(aircraftIcaoString);
|
aircraftIcao = CAircraftIcaoCode(aircraftIcaoString);
|
||||||
const bool knownAircraftIcao = CAircraftMatcher::isKnowAircraftDesignator(aircraftIcaoString, callsign, log);
|
const bool knownAircraftIcao = CAircraftMatcher::isKnownAircraftDesignator(aircraftIcaoString, callsign, log);
|
||||||
if (airlineIcao.isLoadedFromDb() && !knownAircraftIcao)
|
if (airlineIcao.isLoadedFromDb() && !knownAircraftIcao)
|
||||||
{
|
{
|
||||||
// we have no valid aircraft ICAO, so we do a fuzzy search among those
|
// we have no valid aircraft ICAO, so we do a fuzzy search among those
|
||||||
|
|||||||
Reference in New Issue
Block a user