Commit 123e2b6c authored by dt's avatar dt
Browse files

Fix crash for newly added project nodes

Task-Nr: QTCREATORBUG-1697
parent 88d8bf87
......@@ -316,6 +316,8 @@ void ProjectNode::addProjectNodes(const QList<ProjectNode*> &subProjects)
QTC_ASSERT(!project->parentFolderNode(),
qDebug("Project node has already a parent"));
project->setParentFolderNode(this);
project->setProjectNode(this);
foreach (NodesWatcher *watcher, m_watchers)
project->registerWatcher(watcher);
m_subFolderNodes.append(project);
......
Supports Markdown
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