Ref T260, correctly set simulation environment provider

This commit is contained in:
Klaus Basan
2018-04-09 22:58:55 +02:00
committed by Roland Winklmeier
parent 056c257182
commit dcc348c9d9

View File

@@ -220,6 +220,12 @@ namespace BlackCore
c = connect(this->getCContextSimulator(), &CContextSimulator::renderRestrictionsChanged,
this->getCContextNetwork(), &CContextNetwork::xCtxSimulatorRenderRestrictionsChanged);
Q_ASSERT(c);
c = connect(this->getCContextSimulator(), &CContextSimulator::simulatorStatusChanged,
this->getCContextNetwork(), &CContextNetwork::xCtxSimulatorStatusChanged);
Q_ASSERT(c);
// set provider
this->getCContextNetwork()->setSimulationEnvironmentProvider(this->getCContextSimulator()->simulator());
}
// only if own aircraft runs locally