1
0
Fork 0

Launcher: Validate restored aircraft state on load

Otherwise a stray state can enter the logic, unless the user
re-selects it.
This commit is contained in:
Automatic Release Builder 2020-10-27 19:24:13 +00:00 committed by James Turner
parent f0e2a297ae
commit 9855e89109

View file

@ -457,6 +457,13 @@ void LauncherController::updateSelectedAircraft()
} }
} }
if (!m_aircraftState.isEmpty()) {
if (!m_selectedAircraftInfo->hasState(m_aircraftState)) {
m_aircraftState.clear();
emit selectedAircraftStateChanged();
}
}
emit canFlyChanged(); emit canFlyChanged();
} }