mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
ChangedModel in ownAircraft context was not really used.
However, there are cases where the "own model" is changed via own model context, mostly in the emulated driver. * made changedModel -> ps_changedModel a "private" signal * connected it to simulator context * used identifier to avoid roundtrips So the "ownAircraftModelChanged" signal of the simulator context is to be used
This commit is contained in:
committed by
Mat Sutcliffe
parent
d12f164d26
commit
73e566a76e
@@ -238,6 +238,11 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
bool CContextOwnAircraft::updateOwnModel(const CAircraftModel &model)
|
||||
{
|
||||
return updateOwnModel(model, this->identifier());
|
||||
}
|
||||
|
||||
bool CContextOwnAircraft::updateOwnModel(const CAircraftModel &model, const CIdentifier &identifier)
|
||||
{
|
||||
CAircraftModel updateModel(this->reverseLookupModel(model));
|
||||
{
|
||||
@@ -248,7 +253,7 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
// changed model
|
||||
emit this->changedModel(updateModel);
|
||||
emit this->ps_changedModel(updateModel, identifier);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -433,9 +438,9 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
void CContextOwnAircraft::xCtxChangedSimulatorModel(const CAircraftModel &model)
|
||||
void CContextOwnAircraft::xCtxChangedSimulatorModel(const CAircraftModel &model, const CIdentifier &identifier)
|
||||
{
|
||||
this->updateOwnModel(model);
|
||||
this->updateOwnModel(model, identifier);
|
||||
}
|
||||
|
||||
void CContextOwnAircraft::xCtxChangedSimulatorStatus(int status)
|
||||
|
||||
Reference in New Issue
Block a user