Commit b3fa768d authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Don't populate the file finder if there is no run config

Change-Id: I1cce87162836e0579577616956d9993f26e00a01
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 8d3937d1
......@@ -362,14 +362,13 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunControl *runControl)
//
RunConfiguration *runConfiguration = runControl->runConfiguration();
QString projectDirectory;
if (runConfiguration) {
QString projectDirectory;
Project *project = runConfiguration->target()->project();
projectDirectory = project->projectDirectory().toString();
populateFileFinder(projectDirectory, sysroot(runConfiguration));
}
populateFileFinder(projectDirectory, sysroot(runConfiguration));
if (connection.analyzerSocket.isEmpty())
connect(runControl, &QmlProfilerRunControl::processRunning,
d->m_profilerConnections, &QmlProfilerClientManager::connectTcpClient);
......
Markdown is supported
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