QmlProfiler: fixed connection reset when new application starts

Reviewed-by: Kai Koehne
This commit is contained in:
Christiaan Janssen
2011-04-15 14:51:49 +02:00
parent 4a0985093c
commit 4fc3990b53
3 changed files with 6 additions and 5 deletions

View File

@@ -333,7 +333,8 @@ void TraceWindow::clearDisplay()
void TraceWindow::setRecording(bool recording)
{
m_plugin.data()->setRecording(recording);
if (m_plugin)
m_plugin.data()->setRecording(recording);
}
bool TraceWindow::isRecording() const