mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Ref T109, make sure liveries and ICAO are compared correctly
* isDbEqual function * used in getXXDifference functions
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d64bfcabce
commit
551d9326fe
@@ -476,7 +476,7 @@ namespace BlackMisc
|
||||
{
|
||||
const CAircraftIcaoCode icao(this->getModel().getAircraftIcaoCode());
|
||||
const CAircraftIcaoCode icaoNw(this->getNetworkModel().getAircraftIcaoCode());
|
||||
if (icao == icaoNw || icao.getDesignator() == icaoNw.getDesignator()) { return "[=] " + icao.getDesignator(); }
|
||||
if (icao.isDbEqual(icaoNw) || icao == icaoNw) { return QStringLiteral("[=] ") + icao.getDesignator(); }
|
||||
static const QString diff("%1 -> %2");
|
||||
return diff.arg(icaoNw.getDesignator(), icao.getDesignator());
|
||||
}
|
||||
@@ -485,7 +485,7 @@ namespace BlackMisc
|
||||
{
|
||||
const CAirlineIcaoCode icao(this->getModel().getAirlineIcaoCode());
|
||||
const CAirlineIcaoCode icaoNw(this->getNetworkModel().getAirlineIcaoCode());
|
||||
if (icao == icaoNw || icao.getDesignator() == icaoNw.getDesignator()) { return "[=] " + icao.getDesignator(); }
|
||||
if (icao.isDbEqual(icaoNw) || icao == icaoNw) { return QStringLiteral("[=] ") + icao.getDesignator(); }
|
||||
static const QString diff("%1 -> %2");
|
||||
return diff.arg(icaoNw.getDesignator(), icao.getDesignator());
|
||||
}
|
||||
@@ -496,7 +496,7 @@ namespace BlackMisc
|
||||
|
||||
const CLivery livery(this->getModel().getLivery());
|
||||
const CLivery liveryNw(this->getNetworkModel().getLivery());
|
||||
if (livery == liveryNw) { return "[=] " + livery.getCombinedCodePlusInfo(); }
|
||||
if (livery.isDbEqual(liveryNw) || livery == liveryNw) { return QStringLiteral("[=] ") + livery.getCombinedCodePlusInfo(); }
|
||||
static const QString diff("%1 -> %2");
|
||||
return diff.arg(liveryNw.getCombinedCodePlusInfo(), livery.getCombinedCodePlusInfo());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user