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:
Olivier Goffart
2010-08-18 11:40:03 +02:00
parent a909e6649d
commit f64e7a1819
2 changed files with 5 additions and 4 deletions

View File

@@ -206,14 +206,14 @@ void InspectorUi::disconnected()
void InspectorUi::updateEngineList()
{
const QList<QDeclarativeDebugEngineReference> engines = m_clientProxy->engines();
m_engines = m_clientProxy->engines();
//#warning update the QML engines combo
if (engines.isEmpty())
if (m_engines.isEmpty())
qWarning("qmldebugger: no engines found!");
else {
const QDeclarativeDebugEngineReference engine = engines.first();
const QDeclarativeDebugEngineReference engine = m_engines.first();
m_clientProxy->queryEngineContext(engine.debugId());
}
}
@@ -254,7 +254,7 @@ void InspectorUi::serverReloaded()
Document::Ptr doc = snapshot.document(it.key());
it.value()->resetInitialDoc(doc);
}
m_clientProxy->queryEngineContext(0);
m_clientProxy->queryEngineContext(m_engines.value(0).debugId());
}

View File

@@ -148,6 +148,7 @@ private:
ProjectExplorer::Project *m_debugProject;
static InspectorUi *m_instance;
QList<QDeclarativeDebugEngineReference> m_engines;
};
} // Internal