Commit c3f8346b authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qbs: Avoid crash when asking for qbs::ProjectData on invalid Project



Change-Id: I2ce060ab0017eb7722b6dc4f64b1e536f139952c
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 38b8940b
......@@ -834,7 +834,10 @@ const qbs::Project QbsProjectNode::qbsProject() const
const qbs::ProjectData QbsProjectNode::qbsProjectData() const
{
return m_qbsProject.projectData();
if (m_qbsProject.isValid())
return m_qbsProject.projectData();
else
return qbs::ProjectData();
}
bool QbsProjectNode::showInSimpleTree() const
......
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