summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/autotest/testcodeparser.cpp20
1 files changed, 2 insertions, 18 deletions
diff --git a/plugins/autotest/testcodeparser.cpp b/plugins/autotest/testcodeparser.cpp
index a437bd4d15..0cf2ba5675 100644
--- a/plugins/autotest/testcodeparser.cpp
+++ b/plugins/autotest/testcodeparser.cpp
@@ -557,7 +557,8 @@ bool TestCodeParser::postponed(const QStringList &fileList)
case Idle:
return false;
case PartialParse:
- // partial is running, postponing a full parse
+ case FullParse:
+ // parse is running, postponing a full parse
if (fileList.isEmpty()) {
m_partialUpdatePostponed = false;
m_postponedFiles.clear();
@@ -568,23 +569,6 @@ bool TestCodeParser::postponed(const QStringList &fileList)
return true;
// partial parse triggered, postpone or add current files to already postponed partial
foreach (const QString &file, fileList)
- m_postponedFiles.insert(file);
- m_partialUpdatePostponed = true;
- }
- return true;
- case FullParse:
- // full parse is running, postponing another full parse
- if (fileList.isEmpty()) {
- m_partialUpdatePostponed = false;
- m_postponedFiles.clear();
- m_fullUpdatePostponed = true;
- } else {
- // full parse already postponed, ignoring triggering a partial parse
- if (m_fullUpdatePostponed) {
- return true;
- }
- // partial parse triggered, postpone or add current files to already postponed partial
- foreach (const QString &file, fileList)
m_postponedFiles.insert(file);
m_partialUpdatePostponed = true;
}