Commit 956db366 authored by Christian Stenger's avatar Christian Stenger

AutoTest: Avoid triggering aboutToPerformFullParse twice...

...when switching projects.

Change-Id: Id4c9e4e4691ef93cea1fa7e40643c549634f0215
Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
parent 2e26d4ab
......@@ -645,14 +645,12 @@ void TestCodeParser::onQmlDocumentUpdated(const QmlJS::Document::Ptr &document)
}
}
void TestCodeParser::onStartupProjectChanged(ProjectExplorer::Project *)
void TestCodeParser::onStartupProjectChanged(ProjectExplorer::Project *project)
{
if (m_parserState == FullParse || m_parserState == PartialParse) {
if (m_parserState == FullParse || m_parserState == PartialParse)
Core::ProgressManager::instance()->cancelTasks(Constants::TASK_PARSE);
} else {
emit aboutToPerformFullParse();
else if (project)
emitUpdateTestTree();
}
}
void TestCodeParser::onProjectPartsUpdated(ProjectExplorer::Project *project)
......
......@@ -76,7 +76,7 @@ public slots:
void updateTestTree();
void onCppDocumentUpdated(const CPlusPlus::Document::Ptr &document);
void onQmlDocumentUpdated(const QmlJS::Document::Ptr &document);
void onStartupProjectChanged(ProjectExplorer::Project *);
void onStartupProjectChanged(ProjectExplorer::Project *project);
void onProjectPartsUpdated(ProjectExplorer::Project *project);
private:
......
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