forked from qt-creator/qt-creator
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:
committed by
Orgad Shaneh
parent
c7d7cb9d40
commit
f6c6224ebc
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user