Commit 4214bb1a authored by Christiaan Janssen's avatar Christiaan Janssen
Browse files

QmlProfiler: cleaning output when starting new trace

Reviewed-by: Kai Koehne
parent 9b36f12b
......@@ -298,6 +298,9 @@ void QmlProfilerTool::connectClient()
if (QmlProfilerPlugin::debugOutput)
qWarning("QmlProfiler: Failed to connect: %s", qPrintable(d->m_client->errorString()));
}
if (d->m_traceWindow->isRecording())
clearDisplay();
}
void QmlProfilerTool::disconnectClient()
......@@ -308,9 +311,11 @@ void QmlProfilerTool::disconnectClient()
void QmlProfilerTool::startRecording()
{
d->m_traceWindow->setRecordAtStart(true);
if (d->m_client->isConnected())
d->m_traceWindow->setRecordAtStart(true);
if (d->m_client->isConnected()) {
clearDisplay();
d->m_traceWindow->setRecording(true);
}
emit fetchingData(true);
}
......
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