forked from qt-creator/qt-creator
QmlJS: Don't use QDir::separator() for internal paths
We use forward slashes in all internal paths, even on Windows. Change-Id: Ie0b418c770dad96829dd357fe425616b6d3a5b82 Reviewed-by: Fawzi Mohamed <fawzi.mohamed@digia.com>
This commit is contained in:
@@ -551,7 +551,7 @@ void LinkPrivate::loadQmldirComponents(ObjectValue *import, ComponentVersion ver
|
||||
|
||||
importedTypes.insert(component.typeName);
|
||||
if (Document::Ptr importedDoc = snapshot.document(
|
||||
libraryPath + QDir::separator() + component.fileName)) {
|
||||
libraryPath + QLatin1Char('/') + component.fileName)) {
|
||||
if (ObjectValue *v = importedDoc->bind()->rootObjectValue())
|
||||
import->setMember(component.typeName, v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user