diff options
Diffstat (limited to 'src/qml/qml/qqmltypeloaderqmldircontent.cpp')
-rw-r--r-- | src/qml/qml/qqmltypeloaderqmldircontent.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmltypeloaderqmldircontent.cpp b/src/qml/qml/qqmltypeloaderqmldircontent.cpp index 57044fcdc3..5744cf2bb7 100644 --- a/src/qml/qml/qqmltypeloaderqmldircontent.cpp +++ b/src/qml/qml/qqmltypeloaderqmldircontent.cpp @@ -7,10 +7,9 @@ QT_BEGIN_NAMESPACE -QList<QQmlError> QQmlTypeLoaderQmldirContent::errors(const QString &uri) const +QList<QQmlError> QQmlTypeLoaderQmldirContent::errors(const QString &uri, const QUrl &url) const { QList<QQmlError> errors; - const QUrl url(uri); const auto parseErrors = m_parser.errors(uri); for (const auto &parseError : parseErrors) { QQmlError error; @@ -29,6 +28,7 @@ void QQmlTypeLoaderQmldirContent::setContent(const QString &location, const QStr m_hasContent = true; m_location = location; m_parser.parse(content); + m_parser.disambiguateFileSelectors(); } void QQmlTypeLoaderQmldirContent::setError(const QQmlError &error) |