diff --git a/src/plugins/debugger/qml/qmlcppengine.cpp b/src/plugins/debugger/qml/qmlcppengine.cpp index a678a71ea35..910c6524396 100644 --- a/src/plugins/debugger/qml/qmlcppengine.cpp +++ b/src/plugins/debugger/qml/qmlcppengine.cpp @@ -467,7 +467,7 @@ void QmlCppEngine::slaveEngineStateChanged (DebuggerEngine *slaveEngine, const DebuggerState newState) { DebuggerEngine *otherEngine = (slaveEngine == m_cppEngine) - ? m_qmlEngine : m_cppEngine; + ? m_qmlEngine.data() : m_cppEngine.data(); QTC_ASSERT(otherEngine, return); QTC_CHECK(otherEngine != slaveEngine);