summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-20 13:06:04 +0100
committerNikolai Kosjar <nikolai.kosjar@theqtcompany.com>2014-11-20 14:28:53 +0100
commita21dda3360738a249b440de7f77cc56042b0dafa (patch)
tree8127114d8e6e088c127feb413b4aaf49c1514395
parent4b0992568f01ce09cbfb5464072f30f40c114abf (diff)
downloadqt-creator-a21dda3360738a249b440de7f77cc56042b0dafa.tar.gz
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: Christian Kandeler <christian.kandeler@theqtcompany.com>
-rw-r--r--src/plugins/qbsprojectmanager/qbsproject.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/qbsprojectmanager/qbsproject.cpp b/src/plugins/qbsprojectmanager/qbsproject.cpp
index d3f5a1854b..fdb46d5f4d 100644
--- a/src/plugins/qbsprojectmanager/qbsproject.cpp
+++ b/src/plugins/qbsprojectmanager/qbsproject.cpp
@@ -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.