diff options
author | Ulf Hermann <[email protected]> | 2017-08-14 14:40:20 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2017-08-15 13:38:31 +0000 |
commit | dc912be7ead21f55e50f4caec2c67d9d33ab7932 (patch) | |
tree | 18e44daff01bb585a89e174694f20630e89f72e8 | |
parent | 6a626595dc65ac8573b2617639c52bd3ad9fdb71 (diff) |
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 <[email protected]>
-rw-r--r-- | src/plugins/qmlprofiler/qmlprofilerdetailsrewriter.cpp | 1 | ||||
-rw-r--r-- | 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) |