mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
refs #789, treat aircraft with no model string as disabled
This commit is contained in:
@@ -102,6 +102,12 @@ namespace BlackMisc
|
||||
this->m_pilot.setCallsign(this->m_callsign);
|
||||
}
|
||||
|
||||
bool CSimulatedAircraft::isEnabled() const
|
||||
{
|
||||
if (!this->hasModelString()) { return false; }
|
||||
return m_enabled;
|
||||
}
|
||||
|
||||
const QString &CSimulatedAircraft::getAircraftIcaoCodeDesignator() const
|
||||
{
|
||||
return getAircraftIcaoCode().getDesignator();
|
||||
|
||||
@@ -386,8 +386,8 @@ namespace BlackMisc
|
||||
//! Set pilot
|
||||
void setPilot(const BlackMisc::Network::CUser &user);
|
||||
|
||||
//! Enabled?
|
||||
bool isEnabled() const { return m_enabled; }
|
||||
//! Enabled? Enable means it shall be displayed in the simulator
|
||||
bool isEnabled() const;
|
||||
|
||||
//! Enabled / disabled
|
||||
void setEnabled(bool enabled) { m_enabled = enabled; }
|
||||
|
||||
Reference in New Issue
Block a user