Commit 793dced4 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Qbs: Fallback to filename as project name if qbs parsing fails



Use the project filename as a fallback in case qbs parsing fails
without being able to extract the main project data.

Task-number: QTCREATORBUG-9777
Change-Id: Iceedf55c7f5d56a8876c19bcbd94082752c08336
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 0644a2ef
......@@ -624,7 +624,10 @@ void QbsProjectNode::update(const qbs::ProjectData &prjData)
}
}
setDisplayName(prjData.name());
if (!prjData.name().isEmpty())
setDisplayName(prjData.name());
else
setDisplayName(m_project->displayName());
removeProjectNodes(toRemove);
addProjectNodes(toAdd);
......
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