QmlProjectManager: Fix splitting a path by separator

Fixes: QDS-12633
Change-Id: Ide81944e6f9bf08723576aa86d3a1f977c4a7e3d
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Knud Dollereder
2024-04-30 16:36:24 +02:00
parent 5a8b389ddd
commit d877e1bb1f

View File

@@ -330,8 +330,7 @@ NodePtr CMakeGenerator::findOrCreateNode(NodePtr &node, const Utils::FilePath &p
};
const Utils::FilePath relative = path.relativeChildPath(node->dir);
const QChar separator = relative.pathComponentSeparator();
const QList<QStringView> components = relative.pathView().split(separator);
const QList<QStringView> components = relative.pathView().split('/');
NodePtr lastNode = node;
for (const auto &comp : components) {