forked from qt-creator/qt-creator
Fix plugin unit test
Since d43a36c816
the code parser could
have been internally triggered already while still evaluating the
project. This made the parser trigger a parsingFinished() already for
a parse where not the full project had been available inside the
code model which made the plugin unit test fail.
Change-Id: I6cc787c24205cb82c6c2636f79bd0acc5c778c64
Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -547,7 +547,10 @@ void TestCodeParser::onProjectPartsUpdated(ProjectExplorer::Project *project)
|
||||
{
|
||||
if (project != currentProject())
|
||||
return;
|
||||
updateTestTree();
|
||||
if (!m_parserEnabled || m_parserState == Disabled)
|
||||
m_fullUpdatePostponed = true;
|
||||
else
|
||||
emitUpdateTestTree();
|
||||
}
|
||||
|
||||
void TestCodeParser::removeFiles(const QStringList &files)
|
||||
|
Reference in New Issue
Block a user