Commit a50e447a authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: reseting completion flags in traceclient

When the server sends more than one trace consecutively
(e.g. with the profiler JS API), the flags that control
the race condition between the v8 client and the qml
client need to be reset after the data is read.  Otherwise
the complete signal will be duplicated.

Change-Id: I63b808d6f0aae404814d5243c1729671b56ca52e
Reviewed-by: default avatarAurindam Jana <>
parent 9bf15cab
......@@ -460,15 +460,21 @@ void TraceWindow::qmlComplete()
m_qmlDataReady = true;
if (!m_v8plugin ||>status() != QDeclarativeDebugClient::Enabled || m_v8DataReady)
if (!m_v8plugin ||>status() != QDeclarativeDebugClient::Enabled || m_v8DataReady) {
emit viewUpdated();
// once complete is sent, reset the flag
m_qmlDataReady = false;
void TraceWindow::v8Complete()
m_v8DataReady = true;
if (!m_plugin ||>status() != QDeclarativeDebugClient::Enabled || m_qmlDataReady)
if (!m_plugin ||>status() != QDeclarativeDebugClient::Enabled || m_qmlDataReady) {
emit viewUpdated();
// once complete is sent, reset the flag
m_v8DataReady = false;
void TraceWindow::resizeEvent(QResizeEvent *event)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment