QmlProfiler: cleaning output when starting new trace

Reviewed-by: Kai Koehne
This commit is contained in:
Christiaan Janssen
2011-04-08 14:39:55 +02:00
parent 9b36f12b81
commit 4214bb1a9b

View File

@@ -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);
}