mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Checks to avoid crash during shutdown
This commit is contained in:
committed by
Mat Sutcliffe
parent
f54d85dfbc
commit
8223ddb710
@@ -671,6 +671,7 @@ namespace BlackGui
|
||||
|
||||
void CLoginComponent::lookupOwnAircraftModel()
|
||||
{
|
||||
if (!this->hasValidContexts()) { return; }
|
||||
if (!sGui->getIContextSimulator()->isSimulatorAvailable()) { return; }
|
||||
const CAircraftModel model(sGui->getIContextOwnAircraft()->getOwnAircraft().getModel());
|
||||
this->onSimulatorModelChanged(model);
|
||||
|
||||
Reference in New Issue
Block a user