From 7cfd0c9b5dcf942972818bba578485c300453810 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Mon, 7 Mar 2011 16:29:27 +0100 Subject: [PATCH] QmlDebug: Fix stack elements that are unselectable --- src/libs/utils/fileinprojectfinder.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/libs/utils/fileinprojectfinder.cpp b/src/libs/utils/fileinprojectfinder.cpp index 662ec738e3..f24b14b41e 100644 --- a/src/libs/utils/fileinprojectfinder.cpp +++ b/src/libs/utils/fileinprojectfinder.cpp @@ -95,11 +95,16 @@ QString FileInProjectFinder::findFile(const QString &originalPath, bool *success const QChar separator = QLatin1Char('/'); if (originalPath.startsWith(m_projectDir + separator)) { + if (success) + *success = true; return originalPath; } - if (m_cache.contains(originalPath)) + if (m_cache.contains(originalPath)) { + if (success) + *success = true; return m_cache.value(originalPath); + } // Strip directories one by one from the beginning of the path, // and see if the new relative path exists in the build directory. -- 2.11.0