forked from qt-creator/qt-creator
Debugger: Change semantics of DebuggerEngine::masterEngine()
Make it return 'this' if 'this' is the master engine itself. Adapt users. Also do not let the QmlEngine try to beginConnection() when the combined engine was isDying() already. Change-Id: I308deae14a3c4966be381f321c0d9dfaf82c40d6 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -70,7 +70,7 @@ QmlInspectorAgent::QmlInspectorAgent(QmlEngine *engine, QmlDebugConnection *conn
|
||||
, m_engineQueryId(0)
|
||||
, m_rootContextQueryId(0)
|
||||
, m_objectToSelect(WatchItem::InvalidId)
|
||||
, m_masterEngine(engine)
|
||||
, m_masterEngine(engine->masterEngine())
|
||||
, m_toolsClient(0)
|
||||
, m_targetToSync(NoTarget)
|
||||
, m_debugIdToSelect(WatchItem::InvalidId)
|
||||
@@ -92,9 +92,6 @@ QmlInspectorAgent::QmlInspectorAgent(QmlEngine *engine, QmlDebugConnection *conn
|
||||
connect(&m_delayQueryTimer, &QTimer::timeout,
|
||||
this, &QmlInspectorAgent::queryEngineContext);
|
||||
|
||||
if (!m_masterEngine->isMasterEngine())
|
||||
m_masterEngine = m_masterEngine->masterEngine();
|
||||
|
||||
auto engineClient1 = new DeclarativeEngineDebugClient(connection);
|
||||
connect(engineClient1, &BaseEngineDebugClient::newState,
|
||||
this, &QmlInspectorAgent::clientStateChanged);
|
||||
|
||||
Reference in New Issue
Block a user