Commit a21dda33 authored by Nikolai Kosjar's avatar Nikolai Kosjar

QbsProject: Make initial CppTools::ProjectInfo valid

This fixes triggering the QTC_ASSERT in updateCppCompilerCallData() if
the user opens and builds the following qbs project:

    import qbs
    Product {}

Conceptually the initial ProjectInfo should stay invalid, but this would
result in a bigger / more risky change. Will be addressed in master
properly.

Change-Id: I74d3374b438884f38947f551915a80ec836a85c1
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 4b099256
......@@ -110,6 +110,7 @@ QbsProject::QbsProject(QbsManager *manager, const QString &fileName) :
m_qbsUpdateFutureInterface(0),
m_parsingScheduled(false),
m_cancelStatus(CancelStatusNone),
m_codeModelProjectInfo(this),
m_currentBc(0)
{
m_parsingDelay.setInterval(1000); // delay parsing by 1s.
......
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