forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user