mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Simplified sending of changedAircraftsInRange
This commit is contained in:
@@ -58,7 +58,6 @@ namespace BlackCore
|
||||
{
|
||||
// this->log(Q_FUNC_INFO, callsign.toQString(), situation.toQString(), transponder.toQString());
|
||||
|
||||
|
||||
CAircraftList list = this->m_aircraftsInRange.findByCallsign(callsign);
|
||||
if (list.isEmpty())
|
||||
{
|
||||
@@ -78,7 +77,6 @@ namespace BlackCore
|
||||
emit this->m_network->sendRealNameQuery(callsign);
|
||||
emit this->m_network->sendIcaoCodesQuery(callsign);
|
||||
}
|
||||
emit this->changedAircraftsInRange();
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -90,10 +88,10 @@ namespace BlackCore
|
||||
vm.addValue(CAircraft::IndexSituation, situation);
|
||||
vm.addValue(CAircraft::IndexDistance, distance);
|
||||
this->m_aircraftsInRange.applyIf(BlackMisc::Predicates::MemberEqual<CAircraft>(&CAircraft::getCallsign, callsign), vm);
|
||||
emit this->changedAircraftsInRange();
|
||||
}
|
||||
|
||||
aircraftSituationUpdate(callsign, situation);
|
||||
emit this->changedAircraftsInRange();
|
||||
emit changedAircraftSituation(callsign, situation);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user