From dc912be7ead21f55e50f4caec2c67d9d33ab7932 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 14 Aug 2017 14:40:20 +0200 Subject: QmlProfiler: Properly prepare the file finder on every start We want to examine the current list of projects, also if we don't have a specific runConfiguration. Also, after repopulating the file finder, we need to clear the cache of file mappings, as they might have changed. Change-Id: I351789fe999009d443ca5ade9b365bfd490e0e23 Reviewed-by: Christian Kandeler --- src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp | 1 + src/plugins/qmlprofiler/qmlprofilertool.cpp | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp b/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp index e29c731f41a..59d236cc1ab 100644 --- a/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp +++ b/src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp @@ -256,6 +256,7 @@ void QmlProfilerDetailsRewriter::populateFileFinder( m_projectFinder.setProjectDirectory(projectDirectory); m_projectFinder.setProjectFiles(sourceFiles); m_projectFinder.setSysroot(activeSysroot); + m_filesCache.clear(); } } // namespace Internal diff --git a/src/plugins/qmlprofiler/qmlprofilertool.cpp b/src/plugins/qmlprofiler/qmlprofilertool.cpp index 423b8c655ad..8bad426a8ee 100644 --- a/src/plugins/qmlprofiler/qmlprofilertool.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertool.cpp @@ -393,9 +393,7 @@ void QmlProfilerTool::finalizeRunControl(QmlProfilerRunner *runWorker) // Initialize m_projectFinder // - if (runConfiguration) { - d->m_profilerModelManager->populateFileFinder(runConfiguration); - } + d->m_profilerModelManager->populateFileFinder(runConfiguration); } void QmlProfilerTool::recordingButtonChanged(bool recording) -- cgit v1.2.3