Qbs: Do not throw away old project data if parsing failed

Change-Id: Icc54abcfcee1f8deea5247d46d8d13b75741feda
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Tobias Hunger
2013-10-21 14:26:49 +02:00
parent 8c02d6e0dd
commit 5126f01fd6

View File

@@ -290,6 +290,9 @@ void QbsProject::handleQbsParsingDone(bool success)
delete m_qbsUpdateFutureInterface;
m_qbsUpdateFutureInterface = 0;
if (!project.isValid())
return;
m_rootProjectNode->update(project);
updateDocuments(project.isValid() ? project.buildSystemFiles() : QSet<QString>() << m_fileName);