summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Stenger <christian.stenger@qt.io>2016-12-02 09:05:46 +0100
committerChristian Stenger <christian.stenger@qt.io>2016-12-02 12:29:32 +0000
commit349ad040d685ccdc288cd15c07eeca63013771e2 (patch)
tree5f062e70ed8d4c4ec6c9d6881cc237c01ac16c5e
parent2275d683739ac90602d28bde5b8455d075e9cc37 (diff)
downloadqt-creator-349ad040d685ccdc288cd15c07eeca63013771e2.tar.gz
AutoTest: Limit purging of test tree to project switching
Instead of purging the current test tree on all full parses, just purge the whole tree if the user switches the current project. If an item can no more be found after the full parse it gets removed anyhow. This avoids losing the check state on any full-parse. Change-Id: Ia7bae6ced65a69444adf0d7e2a554d90ddd5caa4 Reviewed-by: David Schulz <david.schulz@qt.io>
-rw-r--r--src/plugins/autotest/testcodeparser.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/autotest/testcodeparser.cpp b/src/plugins/autotest/testcodeparser.cpp
index fe4c1132f1..dab7f80f67 100644
--- a/src/plugins/autotest/testcodeparser.cpp
+++ b/src/plugins/autotest/testcodeparser.cpp
@@ -155,8 +155,6 @@ void TestCodeParser::updateTestTree()
return;
m_fullUpdatePostponed = false;
-
- emit aboutToPerformFullParse();
qCDebug(LOG) << "calling scanForTests (updateTestTree)";
scanForTests();
}
@@ -199,6 +197,7 @@ void TestCodeParser::onStartupProjectChanged(ProjectExplorer::Project *project)
qCDebug(LOG) << "Canceling scanForTest (startup project changed)";
Core::ProgressManager::instance()->cancelTasks(Constants::TASK_PARSE);
}
+ emit aboutToPerformFullParse();
if (project)
emitUpdateTestTree();
}