diff --git a/src/blackcore/context_runtime.cpp b/src/blackcore/context_runtime.cpp index 12ad715d3..df6b8e800 100644 --- a/src/blackcore/context_runtime.cpp +++ b/src/blackcore/context_runtime.cpp @@ -439,6 +439,10 @@ namespace BlackCore c = connect(this->m_contextNetwork, &IContextNetwork::changedAircraftSituation, this->getCContextSimulator(), &CContextSimulator::addAircraftSituation); Q_ASSERT(c); + + c = connect(this->m_contextNetwork, &IContextNetwork::textMessagesReceived, + this->getCContextSimulator(), &CContextSimulator::textMessagesReceived); + Q_ASSERT(c); } // only if own aircraft running locally @@ -448,6 +452,18 @@ namespace BlackCore this->getCContextSimulator(), &CContextSimulator::updateCockpitFromContext); Q_ASSERT(c); } + + // only if own aircraft running locally + if (this->m_contextApplication && this->m_contextApplication->usingLocalObjects()) + { + c = connect(this->m_contextApplication, &IContextApplication::statusMessage, + this->getCContextSimulator(), &CContextSimulator::statusMessageReceived); + Q_ASSERT(c); + + c = connect(this->m_contextApplication, &IContextApplication::statusMessages, + this->getCContextSimulator(), &CContextSimulator::statusMessagesReceived); + Q_ASSERT(c); + } } if (this->m_contextNetwork && this->m_contextOwnAircraft && this->m_contextNetwork->usingLocalObjects() && this->m_contextOwnAircraft->usingLocalObjects())