diff options
-rw-r--r-- | src/qtvstools/QML/Debugging/QmlFileSystem.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/qtvstools/QML/Debugging/QmlFileSystem.cs b/src/qtvstools/QML/Debugging/QmlFileSystem.cs index 9c627b8c..fe794ad2 100644 --- a/src/qtvstools/QML/Debugging/QmlFileSystem.cs +++ b/src/qtvstools/QML/Debugging/QmlFileSystem.cs @@ -191,10 +191,14 @@ namespace QtVsTools.Qml.Debug } QmlFile file; - if (!files.TryGetValue(fullPath, out file)) - return default(QmlFile); + if (files.TryGetValue(fullPath, out file)) + return file; - return file; + return new QmlFile + { + FilePath = fullPath, + QrcPath = new Uri(fullPath).ToString().ToLower() + }; } public QmlFile this[string path] |