Commit c13c37f9 authored by Christian Stenger's avatar Christian Stenger

Fix plugin unit test

Since d43a36c8 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: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 7a8b73a0
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment