forked from qt-creator/qt-creator
AutoTest: Avoid triggering aboutToPerformFullParse twice...
...when switching projects. Change-Id: Id4c9e4e4691ef93cea1fa7e40643c549634f0215 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user