forked from qt-creator/qt-creator
Qml Debugger: fix the debugger when the observer is reloaded.
The problem was that we did not query the object with the good engine id
This commit is contained in:
@@ -206,14 +206,14 @@ void InspectorUi::disconnected()
|
|||||||
|
|
||||||
void InspectorUi::updateEngineList()
|
void InspectorUi::updateEngineList()
|
||||||
{
|
{
|
||||||
const QList<QDeclarativeDebugEngineReference> engines = m_clientProxy->engines();
|
m_engines = m_clientProxy->engines();
|
||||||
|
|
||||||
//#warning update the QML engines combo
|
//#warning update the QML engines combo
|
||||||
|
|
||||||
if (engines.isEmpty())
|
if (m_engines.isEmpty())
|
||||||
qWarning("qmldebugger: no engines found!");
|
qWarning("qmldebugger: no engines found!");
|
||||||
else {
|
else {
|
||||||
const QDeclarativeDebugEngineReference engine = engines.first();
|
const QDeclarativeDebugEngineReference engine = m_engines.first();
|
||||||
m_clientProxy->queryEngineContext(engine.debugId());
|
m_clientProxy->queryEngineContext(engine.debugId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -254,7 +254,7 @@ void InspectorUi::serverReloaded()
|
|||||||
Document::Ptr doc = snapshot.document(it.key());
|
Document::Ptr doc = snapshot.document(it.key());
|
||||||
it.value()->resetInitialDoc(doc);
|
it.value()->resetInitialDoc(doc);
|
||||||
}
|
}
|
||||||
m_clientProxy->queryEngineContext(0);
|
m_clientProxy->queryEngineContext(m_engines.value(0).debugId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -148,6 +148,7 @@ private:
|
|||||||
ProjectExplorer::Project *m_debugProject;
|
ProjectExplorer::Project *m_debugProject;
|
||||||
|
|
||||||
static InspectorUi *m_instance;
|
static InspectorUi *m_instance;
|
||||||
|
QList<QDeclarativeDebugEngineReference> m_engines;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // Internal
|
} // Internal
|
||||||
|
Reference in New Issue
Block a user