From 493710c2ac31cc97a9095c32896fc3151ec549c8 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Sun, 3 Oct 2010 09:28:03 +0200 Subject: [PATCH] Do not scan "/" for include files The scanning phase was in some cases insanely long. Reason was that Creator feeds wrong paths to the CppModelManager, for example "/". The scanning phase did what it was told to: scan that whole Harddrive. This patch makes sure that the scanning is not done for "/" Done-With: Roberto --- src/plugins/cpptools/cppmodelmanager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/cpptools/cppmodelmanager.cpp b/src/plugins/cpptools/cppmodelmanager.cpp index 69198cedf14..ec71eb4ee6b 100644 --- a/src/plugins/cpptools/cppmodelmanager.cpp +++ b/src/plugins/cpptools/cppmodelmanager.cpp @@ -1231,6 +1231,9 @@ void CppModelManager::updateIncludesInPaths(QFutureInterface &future, const QString path = paths.takeFirst(); + if (path == QLatin1String("/")) + continue; + // Skip non-existing paths if (!QFile::exists(path)) continue;