Commit 7d2e5d54 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qbs: Send parsing done even if the parsing actually failed



Task-number: QTCREATORBUG-11876

Change-Id: I9c52df7d0ebcb7f779e22061e5cf7923c09dab14
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 00c0fcf3
...@@ -297,22 +297,22 @@ void QbsProject::handleQbsParsingDone(bool success) ...@@ -297,22 +297,22 @@ void QbsProject::handleQbsParsingDone(bool success)
delete m_qbsUpdateFutureInterface; delete m_qbsUpdateFutureInterface;
m_qbsUpdateFutureInterface = 0; m_qbsUpdateFutureInterface = 0;
if (!project.isValid()) if (project.isValid()) {
return; // Do not throw away data when parsing errors were introduced. That frightens users:-)
m_rootProjectNode->update(project);
m_rootProjectNode->update(project); updateDocuments(project.isValid() ? project.buildSystemFiles() : QSet<QString>() << m_fileName);
updateDocuments(project.isValid() ? project.buildSystemFiles() : QSet<QString>() << m_fileName); updateCppCodeModel(m_rootProjectNode->qbsProjectData());
updateQmlJsCodeModel(m_rootProjectNode->qbsProjectData());
updateApplicationTargets(m_rootProjectNode->qbsProjectData());
updateDeploymentInfo(m_rootProjectNode->qbsProject());
updateCppCodeModel(m_rootProjectNode->qbsProjectData()); foreach (Target *t, targets())
updateQmlJsCodeModel(m_rootProjectNode->qbsProjectData()); t->updateDefaultRunConfigurations();
updateApplicationTargets(m_rootProjectNode->qbsProjectData());
updateDeploymentInfo(m_rootProjectNode->qbsProject());
foreach (Target *t, targets()) emit fileListChanged();
t->updateDefaultRunConfigurations(); }
emit fileListChanged();
emit projectParsingDone(success); emit projectParsingDone(success);
} }
......
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