Commit c0e00a05 authored by Tobias Hunger's avatar Tobias Hunger

Qmake: Do not soft-assert when a pro-file is not part of a project

This can happen.

Change-Id: Id8c077592ecc77b5d774cf60dc1faca4e5dbead5
Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
parent 7d46521e
......@@ -429,9 +429,7 @@ QmakeProFileNode *DesktopQmakeRunConfiguration::projectNode() const
QTC_ASSERT(project, return nullptr);
QmakeProFileNode *rootNode = project->rootProjectNode();
QTC_ASSERT(rootNode, return nullptr);
QmakeProFileNode *node = rootNode->findProFileFor(m_proFilePath);
QTC_CHECK(node);
return node;
return rootNode->findProFileFor(m_proFilePath);
}
QString DesktopQmakeRunConfiguration::defaultDisplayName()
......
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