forked from qt-creator/qt-creator
ProjectNodes: Fix forEachGenericNode
Iterate over all nodes in the whole tree, not just the FileNodes of the children of the current node. Change-Id: Ib8bf0eaecb2b13bd01dbc61417b83d0873ab6527 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -470,7 +470,7 @@ void FolderNode::forEachGenericNode(const std::function<void(Node *)> &genericTa
|
||||
for (Node *n : m_nodes) {
|
||||
genericTask(n);
|
||||
if (FolderNode *fn = n->asFolderNode())
|
||||
fn->forEachNode(genericTask);
|
||||
fn->forEachGenericNode(genericTask);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user