mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
[FSD] Style and minor fix, check for network ICAO 1st and not for simulator model (correct display)
This commit is contained in:
committed by
Mat Sutcliffe
parent
ff2ab95367
commit
e9f8be013c
@@ -460,10 +460,12 @@ namespace BlackMisc
|
||||
|
||||
QString CSimulatedAircraft::getNetworkModelAircraftIcaoDifference() const
|
||||
{
|
||||
const CAircraftIcaoCode icao(this->getModel().getAircraftIcaoCode());
|
||||
const CAircraftIcaoCode icaoNw(this->getNetworkModel().getAircraftIcaoCode());
|
||||
if (!icao.hasDesignator()) { return QStringLiteral("[x] no sim."); }
|
||||
if (!icaoNw.hasDesignator()) { return QStringLiteral("[x] no nw."); }
|
||||
|
||||
const CAircraftIcaoCode icao(this->getModel().getAircraftIcaoCode());
|
||||
if (!icao.hasDesignator()) { return QStringLiteral("[x] no sim."); }
|
||||
|
||||
if (icao.isDbEqual(icaoNw) || icao == icaoNw) { return u"[==] " % icao.getDesignatorDbKey(); }
|
||||
if (icao.getDesignator() == icaoNw.getDesignator()) { return u"[=] " % icao.getDesignator(); }
|
||||
return QStringLiteral("%1 -> %2").arg(icaoNw.getDesignator(), icao.getDesignator());
|
||||
|
||||
Reference in New Issue
Block a user