refs #791, also perform lookup in simulator plugin`s CSimulatorFsCommon::setOwnAircraftModel

This commit is contained in:
Klaus Basan
2016-10-29 04:07:33 +02:00
parent 4e2a01c1e4
commit 4478af119d
3 changed files with 12 additions and 2 deletions

View File

@@ -79,8 +79,7 @@ namespace BlackSimPlugin
if (!model.hasModelString()) { return; }
if (this->getOwnAircraftModel() != model)
{
CAircraftModel newModel(model);
newModel.setModelType(CAircraftModel::TypeOwnSimulatorModel);
const CAircraftModel newModel = reverseLookupModel(model);
const bool updated = this->updateOwnModel(newModel); // update in provider (normally the context)
if (updated)
{