diff --git a/src/declarative/qml/qdeclarativetypeloader.cpp b/src/declarative/qml/qdeclarativetypeloader.cpp index 649fef355..8a06a2ce0 100644 --- a/src/declarative/qml/qdeclarativetypeloader.cpp +++ b/src/declarative/qml/qdeclarativetypeloader.cpp @@ -747,12 +747,8 @@ Returns a empty string if the path does not exist. */ QString QDeclarativeTypeLoader::absoluteFilePath(const QString &path) { - if (path.isEmpty()) + if (path.isEmpty()) { return QString(); - if (path.at(0) == QLatin1Char(':')) { - // qrc resource - QFileInfo fileInfo(path); - return fileInfo.isFile() ? fileInfo.absoluteFilePath() : QString(); } int lastSlash = path.lastIndexOf(QLatin1Char('/'));