diff --git a/app/project/item/folder/folder.cpp b/app/project/item/folder/folder.cpp index cdb36801e..d94f6fe12 100644 --- a/app/project/item/folder/folder.cpp +++ b/app/project/item/folder/folder.cpp @@ -50,13 +50,13 @@ void Folder::Retranslate() bool ChildExistsWithNameInternal(const Folder* n, const QString& s) { - foreach (const Node::OutputConnection& c, n->output_connections()) { - Node* connected = c.second.node(); + for (int i=0; iitem_child_count(); i++) { + Node* child = n->item_child(i); - if (connected->GetLabel() == s) { + if (child->GetLabel() == s) { return true; } else { - Folder* subfolder = dynamic_cast(connected); + Folder* subfolder = dynamic_cast(child); if (subfolder && ChildExistsWithNameInternal(subfolder, s)) { return true;