mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-15 01:05:35 +08:00
Fix missing removedAircraft signals when disconnecting from network
This commit is contained in:
@@ -112,10 +112,9 @@ namespace BlackCore
|
||||
//! Clear the contents
|
||||
void clear()
|
||||
{
|
||||
m_atcStationsOnline.clear();
|
||||
m_atcStationsBooked.clear();
|
||||
m_aircraftsInRange.clear();
|
||||
m_otherClients.clear();
|
||||
removeAllAtcStations();
|
||||
removeAllAircrafts();
|
||||
removeAllOtherClients();
|
||||
m_metarCache.clear();
|
||||
m_flightPlanCache.clear();
|
||||
}
|
||||
@@ -145,6 +144,10 @@ namespace BlackCore
|
||||
//! Helper method, add voice capabilites if available
|
||||
void addVoiceCapabilitiesFromDataFile(BlackMisc::CPropertyIndexVariantMap &vm, const BlackMisc::Aviation::CCallsign &callsign);
|
||||
|
||||
void removeAllAtcStations();
|
||||
void removeAllAircrafts();
|
||||
void removeAllOtherClients();
|
||||
|
||||
private slots:
|
||||
void ps_realNameReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, const QString &realname);
|
||||
void ps_capabilitiesReplyReceived(const BlackMisc::Aviation::CCallsign &callsign, quint32 flags);
|
||||
|
||||
Reference in New Issue
Block a user