Autotest: Avoid needless iterations over the project files

Task-number: QTCREATORBUG-18185
Change-Id: I6c541cfa577331edc1ff3083d2f9b705ffc7ce73
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Orgad Shaneh
2017-05-10 22:48:55 +03:00
committed by Orgad Shaneh
parent c7d7cb9d40
commit f6c6224ebc
3 changed files with 8 additions and 8 deletions

View File

@@ -206,7 +206,7 @@ void TestCodeParser::onDocumentUpdated(const QString &fileName)
Project *project = SessionManager::startupProject();
if (!project)
return;
if (!project->files(Project::SourceFiles).contains(fileName))
if (!SessionManager::projectContainsFile(project, Utils::FileName::fromString(fileName)))
return;
scanForTests(QStringList(fileName));