ProjectNodes: Do not define a copy constructor for FileNode

Nodes are QObjects (still), so they should not have a copy constructor.

Change-Id: I1b20663ee0ec121cda4d39ced7a9f204fb4621a1
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2017-05-03 12:20:10 +02:00
parent 9ae5591956
commit 175643fd7e
4 changed files with 12 additions and 3 deletions

View File

@@ -735,7 +735,7 @@ void ServerModeReader::addHeaderNodes(ProjectNode *root, const QList<FileNode *>
const int count = seenHeaders.count();
seenHeaders.insert(fn->filePath());
if (seenHeaders.count() != count) {
auto node = new FileNode(*fn);
auto node = fn->clone();
node->setEnabled(false);
headerNode->addNestedNode(node);
}