aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@theqtcompany.com>2015-04-16 15:07:56 +0200
committerChristian Stenger <christian.stenger@theqtcompany.com>2015-04-16 16:22:43 +0300
commitc13c37f9f414e253a777ee8a1d38de1ac8679b52 (patch)
tree2a5f8b5a871148baa2c5470f56d08700cb97cf3f
parent7a8b73a0caf0d3ede1b81049ae05b3ffdd51e71d (diff)
Fix plugin unit testat-v3.4.0
Since d43a36c8167a37903f70b49b67ec39efa0ba086e 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>
-rw-r--r--plugins/autotest/testcodeparser.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/autotest/testcodeparser.cpp b/plugins/autotest/testcodeparser.cpp
index 8c0b7b43d7..004f733fbd 100644
--- a/plugins/autotest/testcodeparser.cpp
+++ b/plugins/autotest/testcodeparser.cpp
@@ -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)