From a8230eb6c1a45489f33ffa86498e5ea3452496e1 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 10 Jan 2017 15:44:59 +0100 Subject: [PATCH] do not report the .pro file itself in ProFileReader::includeFiles() it's pointless, as no consumer has a legitimate need for it - the project file is the root of all traversals, and is known by other means. amends 4148b05e0. Change-Id: I4df69727e37151b0ecbcd88b2f5ef6e55712172f Reviewed-by: Tobias Hunger --- src/plugins/qtsupport/profilereader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qtsupport/profilereader.cpp b/src/plugins/qtsupport/profilereader.cpp index 4c48f2a2046..0985a64b750 100644 --- a/src/plugins/qtsupport/profilereader.cpp +++ b/src/plugins/qtsupport/profilereader.cpp @@ -97,7 +97,7 @@ void ProFileReader::aboutToEval(ProFile *parent, ProFile *pro, EvalFileType type { if (m_ignoreLevel || (type != EvalProjectFile && type != EvalIncludeFile)) { m_ignoreLevel++; - } else { + } else if (parent) { // Skip the actual .pro file, as nobody needs that. QVector &children = m_includeFiles[parent]; if (!children.contains(pro)) { children.append(pro);