forked from qt-creator/qt-creator
Project: Fix soft-assert triggered by Qbs projects
Soft-assert when a root project node is set again, except when that node is nullptr. Change-Id: Ib7c1891defc79d464a692c0e982b668be9a40cf9 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -493,7 +493,7 @@ void Project::setId(Core::Id id)
|
||||
|
||||
void Project::setRootProjectNode(std::unique_ptr<ProjectNode> &&root)
|
||||
{
|
||||
QTC_ASSERT(d->m_rootProjectNode.get() != root.get(), return);
|
||||
QTC_ASSERT(d->m_rootProjectNode.get() != root.get() || !root, return);
|
||||
|
||||
if (root && root->isEmpty()) {
|
||||
// Something went wrong with parsing: At least the project file needs to be
|
||||
|
Reference in New Issue
Block a user